Go to advanced search

by clicky
Sun Feb 22, 2015 5:29 pm
Forum: Java
Topic: Assign pi4j pins from text data?
Replies: 17
Views: 2737

Re: Assign pi4j pins from text data?

Robert has already picked it up and fixed it. You can try again. It should work now! O : )
by clicky
Sun Feb 22, 2015 12:37 pm
Forum: Java
Topic: Assign pi4j pins from text data?
Replies: 17
Views: 2737

Re: Assign pi4j pins from text data?

Sorry - my mistake. I didn't try out the fix I had. I've sorted it out but give me a moment to test it. I'll post it here, sometime today, when it is ready.
by clicky
Fri Feb 20, 2015 3:47 pm
Forum: Java
Topic: Assign pi4j pins from text data?
Replies: 17
Views: 2737

Re: Assign pi4j pins from text data?

Done (thanks to Robert). You can pick the latest from: http://pi4j.com/download.html There you'll find that com.pi4j.io.gpio.RaspiPin has static method getPinByName(String) where name is as defined in that class (check the source file) and is in format like: "GPIO 0", "GPIO 1", ..., "GPIO 10", ...
by clicky
Wed Feb 18, 2015 4:07 pm
Forum: Java
Topic: Assign pi4j pins from text data?
Replies: 17
Views: 2737

Re: Assign pi4j pins from text data?

In that case I can send you 1.0-SNAPSHOT files so you can replace 0.0.5 ones with the latest.
I've just re-built it on my Pi (remotely).

Ideally I would like to see them in maven repo of some kind... (I'll be working on it now)
by clicky
Wed Feb 18, 2015 2:02 pm
Forum: Java
Topic: Assign pi4j pins from text data?
Replies: 17
Views: 2737

Re: Assign pi4j pins from text data?

If you don't mind building pi4j from source code - checkout develop branch and build it yourself. The method above is just pushed back in.

Alternatively - let me know how you created your project and we can think of something.
by clicky
Wed Feb 18, 2015 11:01 am
Forum: Java
Topic: Assign pi4j pins from text data?
Replies: 17
Views: 2737

Re: Assign pi4j pins from text data?

You know what - even reflection of RaspiPin is not quite right. If you can to hold off your implementation and you don't mind taking the latest snapshot - I'll go tonight and add new method along the lines of: public class RaspiPin { public static Pin getPinByName(String name) { ... } ... } where na...
by clicky
Wed Feb 18, 2015 10:24 am
Forum: Java
Topic: Assign pi4j pins from text data?
Replies: 17
Views: 2737

Re: Assign pi4j pins from text data?

Well done. :) Only thing I wouldn't insist of doing is where you already have your class (SomeGPIOInput) - you can design special method like: public void setPin(String name, GpioPinDigitalInput pin) { if ("switchPin".equals(name)) { switchPin = pin; } if ("triggerPin".equals(name)) { triggerPin = p...
by clicky
Tue Feb 17, 2015 4:35 pm
Forum: Java
Topic: Raspivid stream to a java panel questions
Replies: 2
Views: 1403

Re: Raspivid stream to a java panel questions

Definitively interesting question.

No answers - nor time to find time (sorry O: ), but I do have more questions: did you try to pass/wrap/adapt System.in for jvlc - so it reads it instead of a file?
by clicky
Tue Feb 17, 2015 3:52 pm
Forum: Java
Topic: Remote Java programming
Replies: 15
Views: 10200

Re: Remote Java programming

by clicky
Wed Feb 11, 2015 8:26 am
Forum: Java
Topic: Jar on Raspberry Pi not responding after a long time
Replies: 10
Views: 1750

Re: Jar on Raspberry Pi not responding after a long time

Just be careful that SD cards do have limited amount write cycles and I am not sure how well Linux drivers are equipped with logic not to wear out single storage block and scatter writes over the medium. As I originally said - what if SD card is to be blamed for slowing down and some odd behaviour? ...
by clicky
Tue Feb 10, 2015 8:34 pm
Forum: Java
Topic: RPi 2 performance
Replies: 9
Views: 4376

Re: RPi 2 performance

As completely ignorant in the matter - I though that JVM for ARM (deployed to RPi as well as some other ARM platforms) is already capable of utilising ARM7 instruction set (and its Java extension) when/if available. There is no need for extra 're-compilation' for platform. Generally speaking JVM (at...
by clicky
Mon Feb 09, 2015 9:15 pm
Forum: Java
Topic: Jar on Raspberry Pi not responding after a long time
Replies: 10
Views: 1750

Re: Jar on Raspberry Pi not responding after a long time

Got home. Here it is:

Code: Select all

$ java -version
java version "1.8.0_06"
Java(TM) SE Runtime Environment (build 1.8.0_06-b23)
Java HotSpot(TM) Client VM (build 25.6-b23, mixed mode)
by clicky
Mon Feb 09, 2015 10:03 am
Forum: Java
Topic: Jar on Raspberry Pi not responding after a long time
Replies: 10
Views: 1750

Re: Jar on Raspberry Pi not responding after a long time

I don't have access to it right now, but over time I used different versions of Oracle's Java7 and/or Java8...
by clicky
Mon Feb 09, 2015 9:26 am
Forum: Java
Topic: Jar on Raspberry Pi not responding after a long time
Replies: 10
Views: 1750

Re: Jar on Raspberry Pi not responding after a long time

Real question is really what daemon really is? I run it mostly from command line, but I did run some as a 'daemon', too. Daemon is a process as any other so it shouldn't be an issue. What you are experiencing points to something completely different: if whole RPi is slowing down - then maybe somethi...
by clicky
Mon Feb 09, 2015 8:33 am
Forum: Java
Topic: Netbeans on Pi-2
Replies: 2
Views: 1953

Re: Netbeans on Pi-2

When I think about it - it makes perfect sense. I used my 800MHz old PC with 1GB of memory, long time ago with first Eclipses (Eclipse 2.0)... Also, when run locally, smallest Eclipse doesn't take more than 0.5GB, so I wouldn't be surprised to see it running there as well. Those extra 512MB of memor...
by clicky
Sun Feb 08, 2015 8:36 pm
Forum: Java
Topic: servo control with software pwm
Replies: 17
Views: 2853

Re: servo control with software pwm

Sorry to jump in quite late and reply slightly off topic but I was doing some development with servo blaster and pi4j. You can see it in 'develop' branch of pi4j (you would need to check that branch out and rebuild it on the pi). pi4j servo blaster impl is here: https://github.com/Pi4J/pi4j/tree/dev...
by clicky
Sun Feb 08, 2015 8:30 pm
Forum: Java
Topic: java me or java se, add jdk.dio or pi4j
Replies: 8
Views: 5148

Re: java me or java se, add jdk.io or pi4j

As someone who really liked pi4j - I would say jdk + pi4j. There are plenty of examples and it is proven to work.

No idea how good java me is nor jdk.io managed to get me attracted to it. Especially in the early days...
by clicky
Sun Feb 08, 2015 8:28 pm
Forum: Java
Topic: Jar on Raspberry Pi not responding after a long time
Replies: 10
Views: 1750

Re: Jar on Raspberry Pi not responding after a long time

Sorry for not being able to help you with what *is* the problem you have, but I can confirm that running a jar (a java program in a jar or even more jars/classpath) is not an issue. I regularly run programs on Pi - including a small clock/temperature display over i2c for days and even months without...
by clicky
Sun Feb 08, 2015 8:25 pm
Forum: Java
Topic: RPi 2 performance
Replies: 9
Views: 4376

Re: RPi 2 performance

All valid points. Thanks! :)
by clicky
Sat Feb 07, 2015 12:57 pm
Forum: Java
Topic: RPi 2 performance
Replies: 9
Views: 4376

Re: RPi 2 performance

Could you elaborate it a bit more for me please? :)
(not questioning it - but just curious why)
by clicky
Fri Jan 16, 2015 8:51 am
Forum: Java
Topic: Provided arguments to Remote VM
Replies: 3
Views: 1573

Re: Provided arguments to Remote VM

Sorry to kept you waiting and your question is quite valid. Yes, it seems that I had similar problem and I have solved it but forgot to update usage output of client jar. Anyway you need to use --remote-VM-argument or -rvma followed by argument passed to each newly started VM (by remote agent, of co...
by clicky
Thu Dec 25, 2014 1:08 pm
Forum: Java
Topic: Lightweight Java HTTP Async Server
Replies: 9
Views: 6891

Re: Lightweight Java HTTP app server

I was a bit sceptical but it really seems very light and with small footprint. I'll try to use it for my next project (instead of built in server).
by clicky
Wed Dec 17, 2014 9:37 am
Forum: Java
Topic: Re-compile android app for Rasberry pi?
Replies: 7
Views: 7190

Re: Re-compile android app for Rasberry pi?

I've tried and succeeded in porting LibGDX ( http://libgdx.badlogicgames.com/index.html ) app to RPi. That framework is mainly for 2D and 3D games across the platforms (Windows/Linux/OSX/Android/iOS/HTML5) but can be used for 'serious apps' (see here: https://github.com/natdan/gcode-preview 3D print...
by clicky
Sun Dec 07, 2014 2:48 pm
Forum: Java
Topic: Desktop Eclipse integration with RPi?
Replies: 12
Views: 4581

Re: Desktop Eclipse integration with RPi?

:) I'm glad to be of help... Strangely enough - after months of doing something else, last three weeks I am using remotevm tool myself again - making some 3d printer toolset software in java. And it just works! I'm going to look at Windows paths (and spaces) and bump version to 1.0! And move source ...
by clicky
Sun Dec 07, 2014 11:24 am
Forum: Java
Topic: Desktop Eclipse integration with RPi?
Replies: 12
Views: 4581

Re: Desktop Eclipse integration with RPi?

"suspend=y," is the key. If you omit '--remote-debug-suspend' then it will be 'suspend=n' which means app will start immediately without waiting for you to attach to it for debugging. Anyway - remotevm doesn't do anything debugging wise - it just passes parameters to remote vm for it to listen to po...

Go to advanced search