Show Posts
Pages: [1] 2 3 ... 14
1  Products / Arduino Yún / Re: Please upgrade your Yún - latest is 1.4.2 on: September 14, 2014, 06:38:17 am
Thank you will investigate.
2  Products / Arduino Yún / Re: Master and Slave arrangement : Anybody please share your thoughts on: September 14, 2014, 01:30:48 am
Connect all the slave Yun's using an RS485 network, then use a protocol such as Modbus RTU which is designed for a single master and multiple slaves.

Each device controls the bus by asserting the RTS line.
3  Products / Arduino Yún / Re: Please upgrade your Yún - latest is 1.4.2 on: September 13, 2014, 02:39:36 pm
I haven't done anything with the Yun for a while and came back tonight read this and was interested in upgrading my Yun. Downloaded the image then read the big red alert informing me that going ahead will Void the warranty on the Yun.
(http://arduino.cc/en/Tutorial/YunUBootReflash)

Why?

For now I have chosen not to reflash.
4  Products / Arduino Yún / Re: Is it possible to use arduino YUN as modbus master and slave at same time? on: July 18, 2014, 01:21:55 pm
Assuming you have written the implementations for both Master and Slave, you then just assign each to a different serial port.

If you are asking how to write the modbus implementations I suggest downloading the Modicon Modbus Protocol Specification or visit: http://www.libstock.com/ and download my master and slave projects which include the source code written in C for PIC's.

Slave => http://www.libstock.com/projects/view/355/serial-modbus-slave
Master => http://www.libstock.com/projects/view/441/serial-modbus-master

It should be quite straight forward to port to Ardunio Yun.

Kind Regards,
Simon
5  Products / Arduino Yún / Re: jamvm out of memory on: May 12, 2014, 03:37:09 pm
Robert, author of jamvm has been helping me to resolve some of the issues I've been experiencing.  I have tested the same project on a Beaglebone Black running openJDK and it works fine.  Unfortunately it won't run on jamvm on the Yun.  Robert was saying that the Virtual Machine used by jamvm on the Yun is GNU and no longer supported.  However openJDK uses IcedTea.

At the moment I'm a bit screwed as I need a java virtual machine capable of running my project.
6  Products / Arduino Yún / Re: Anyone built RXTX for Yun? on: May 12, 2014, 02:12:47 pm
Right now I'm struggling to get it working, I've looked a the source, but I really can't see how it could work.  I have used it before on PC systems so I know it works, but I just can't see how.
7  Products / Arduino Yún / Re: Anyone built RXTX for Yun? on: May 12, 2014, 01:45:19 pm
Sorry if I'm being thick....I don't follow, what I was trying to do was run a java application on the Yun using jamvm, with RXTX native library and RXTXcomm.jar

I thought what you were saying was that I could use JSSC on the Yun as an alternative to RXTX.
8  Products / Arduino Yún / Re: jamvm out of memory on: May 12, 2014, 11:52:37 am
@sonnyyu, followed the link, not really sure what it is and  how it can help?
9  Products / Arduino Yún / Re: Anyone built RXTX for Yun? on: May 12, 2014, 11:47:52 am
Are you saying they're is an .so native library for the Yun already available?
10  Products / Arduino Yún / Re: jamvm out of memory on: May 12, 2014, 03:53:47 am
Thanks will have a go tonight.
11  Products / Arduino Yún / Re: jamvm out of memory on: May 11, 2014, 01:03:31 pm
According to the jamvm help:
-Xms is the initial size of the heap,
-Xmx, is the maxium size of the heap.
-Xss, is the stack size

Code:
Unrecognised command line option: -h
Usage: java [-options] class [arg1 arg2 ...]
                 (to run a class file)
   or  java [-options] -jar jarfile [arg1 arg2 ...]
                 (to run a standalone jar file)

where options include:
  -client          compatibility (ignored)
  -server          compatibility (ignored)

  -cp              <jar/zip files and directories separated by :>
  -classpath       <jar/zip files and directories separated by :>
                   locations where to find application classes
  -D<name>=<value> set a system property
  -verbose[:class|gc|jni]
                   :class print out information about class loading, etc.
                   :gc print out results of garbage collection
                   :jni print out native method dynamic resolution
  -version         print out version number and copyright information
  -showversion     show version number and copyright and continue
  -fullversion     show jpackage-compatible version number and exit
  -? -help         print out this message
  -X               show help on non-standard options
root@SPlatten:/opt# java -X
  -Xbootclasspath:<jar/zip files and directories separated by :>
                   locations where to find the system classes
  -Xbootclasspath/a:<jar/zip files and directories separated by :>
                   locations are appended to the bootstrap class path
  -Xbootclasspath/p:<jar/zip files and directories separated by :>
                   locations are prepended to the bootstrap class path
  -Xbootclasspath/c:<jar/zip files and directories separated by :>
                   locations where to find Classpath's classes
  -Xbootclasspath/v:<jar/zip files and directories separated by :>
                   locations where to find JamVM's classes
  -Xasyncgc        turn on asynchronous garbage collection
  -Xcompactalways  always compact the heap when garbage-collecting
  -Xnocompact      turn off heap-compaction
  -Xms<size>       set the initial size of the heap
                   (default = MAX(physical memory/64, 1M))
  -Xmx<size>       set the maximum size of the heap
                   (default = MIN(physical memory/4, 1024M))
  -Xss<size>       set the Java stack size for each thread (default = 256K)
                   size may be followed by K,k or M,m (e.g. 2M)
12  Products / Arduino Yún / Re: jamvm out of memory on: May 11, 2014, 12:44:25 pm
Sorry to say it didn't help...

http://pastebin.com/ZaPg87VN

13  Products / Arduino Yún / Re: jamvm out of memory on: May 11, 2014, 12:31:02 pm
First attempt failed, ran out of space, trying again this time 16384
14  Products / Arduino Yún / Re: jamvm out of memory on: May 11, 2014, 12:08:33 pm
After a long time with -Xms32M it finally came back with just:
Code:
Bus error

I've tried creating a swap image:
Code:
dd if=/dev/zero of=/swapfile bs=1024 count=65536

I'm still waiting for it to complete, I can see the swapfile being created in another session.
15  Products / Arduino Yún / Re: jamvm out of memory on: May 11, 2014, 07:10:12 am
Thank you, I'll give it a go, going to run application with -verbose first see if that helps uncover anything.
Pages: [1] 2 3 ... 14