Go to advanced search

by savageautomate
Sun Oct 28, 2012 2:54 pm
Forum: Other programming languages
Topic: Pi4J - A Java library to interface with the Raspberry Pi
Replies: 57
Views: 49593

Re: Pi4J - A Java library to interface with the Raspberry Pi

Basically the java.lang.NoClassDefFoundError error suggests that the example program could not find the pi4j-core JAR on the classpath at runtime. In your compiler command it looks like you are referencing the pi4j-core JAR file in a "jar" subfolder. > javac -cp jar/ pi4j-core-0.0.3-SNAPSHOT.jar -d ...
by savageautomate
Sun Oct 28, 2012 6:51 am
Forum: Other programming languages
Topic: Pi4J - A Java library to interface with the Raspberry Pi
Replies: 57
Views: 49593

Re: Pi4J - A Java library to interface with the Raspberry Pi

I assumed you meant download the current source with git. I'm very new to git, but I did clone the pi4j folder, installed maven. I ran "mvn clean install" but it failed looking for something. I'm going to work on it tomorrow and see if I can fix it. Maybe I don't have an environment variable or pat...
by savageautomate
Sat Oct 27, 2012 9:03 pm
Forum: Other programming languages
Topic: Pi4J - A Java library to interface with the Raspberry Pi
Replies: 57
Views: 49593

Re: Pi4J - A Java library to interface with the Raspberry Pi

... What am I doing wrong? I followed the install instructions and installed that wiringpi library. This seems to be saying it can't find the gpio stuff from pi4j. Hi chisleu , There may have been some problem/defect with the previously deployed artifacts. There have been quite a bit of changes mad...
by savageautomate
Fri Oct 26, 2012 1:53 pm
Forum: General discussion
Topic: POS Software?
Replies: 33
Views: 19699

Re: POS Software?

I'm also interested in getting openbravo installed, where did you find those jdk instructions? Not sure which instructions *gurro* used, but here is a link to the set of instructions that I posted on how to install the Oracle JDK 7 (Oracle Java SE Development Kit 7u6) on the Raspberry Pi. http://ww...
by savageautomate
Thu Oct 25, 2012 4:39 am
Forum: General discussion
Topic: Anyone have wifi dongle without external power?
Replies: 45
Views: 27127

Re: Anyone have wifi dongle without external power?

+1 for the Edimax EW-7811Un USB WiFi adapter I run three of these units directly attached to the Raspberry Pi's USB port (no external powered USB hub). All have been stable for many weeks. I even have one attached to a first "B" model hardware revision with the polyfuses on the USB power lines. No ...
by savageautomate
Thu Oct 25, 2012 4:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: State change on GPIO input which sends an event
Replies: 2
Views: 1155

Re: State change on GPIO input which sends an event

The Pi4J project also implements pin "event" monitoring in its JNI bridge native (C) library:
https://github.com/Pi4J/pi4j/blob/maste ... nterrupt.c
by savageautomate
Thu Oct 25, 2012 3:55 am
Forum: C/C++
Topic: how to determine armel vs armhf
Replies: 10
Views: 45006

Re: how to determine armel vs armhf

For JogAmp gluegen sgothel implemented a armhf detection by looking for the "gnueabihf" or "armhf" name in the system library paths to find out if we are running on a armhf system at runtime. Thanks everybody for the very helpful info! @xranby I did use the example from JogAmp gluegen and it seems ...
by savageautomate
Wed Oct 24, 2012 6:04 am
Forum: C/C++
Topic: how to determine armel vs armhf
Replies: 10
Views: 45006

Re: how to determine armel vs armhf

My question to you though is why you want to know at run time. In most cases I would assume you'd write code separated by pre-processor commands to switch from armel optimized code to armhf optimized at compile time. What's your reasoning for wanting to know at runtime? Great question :D In my use ...
by savageautomate
Wed Oct 24, 2012 2:33 am
Forum: C/C++
Topic: how to determine armel vs armhf
Replies: 10
Views: 45006

how to determine armel vs armhf

Is there a way to programmatically determine the ABI at runtime?
Looking for a way to determine if the system is armel or armhf at program startup.

Thanks, Robert
by savageautomate
Sun Oct 21, 2012 4:50 pm
Forum: Other programming languages
Topic: Tutorial to install Eclipse (for Java) on the RPI
Replies: 16
Views: 86008

Re: Tutorial to install Eclipse (for Java) on the RPI

Thanks for that I have installed it and it is very slow to load or do anything with it. I have nothing else running so it has all of the ram it requires to run. ... Also, if you need to get better Java runtime performance, you may want to switch to the Oracle JDK instead of the OpenJDK. See compari...
by savageautomate
Sun Oct 21, 2012 4:45 pm
Forum: Other programming languages
Topic: Tutorial to install Eclipse (for Java) on the RPI
Replies: 16
Views: 86008

Re: Tutorial to install Eclipse (for Java) on the RPI

Thanks for that I have installed it and it is very slow to load or do anything with it. I have nothing else running so it has all of the ram it requires to run. I appreciate we are ruuning it on a 700mhz Single core processor so my next question is can I use a cross compiler for the R-Pi on a windo...
by savageautomate
Sun Oct 21, 2012 5:55 am
Forum: General discussion
Topic: Installation instructions Edimax EW-7811Un WiFi USB
Replies: 5
Views: 92272

Re: Installation instructions Edimax EW-7811Un WiFi USB

On my wheezy most of this was done automatically once connected through the gui client. It has a different file location and name though: /etc/wpa_supplicant/wpa_supplicant.conf Below if I set iface wlan0 inet dhcp it errors saying it must be manual ... Just fyi for comparison Hi malakai, I have up...
by savageautomate
Sun Oct 21, 2012 5:11 am
Forum: General discussion
Topic: how to start wireless adapter on boot
Replies: 10
Views: 23643

Re: how to start wireless adapter on boot

malakai wrote:What is in:
sudo nano /etc/network/interfaces
can you post it I think you don't have auto wlan0 in it possibly can you just try that and see if it works?
You beat me to the submit :ugeek:
by savageautomate
Sun Oct 21, 2012 5:10 am
Forum: General discussion
Topic: how to start wireless adapter on boot
Replies: 10
Views: 23643

Re: how to start wireless adapter on boot

User: malakai suggested that all he had to do after configuring via the GUI was to add the " auto wlan0 " configuration parameter to the "/etc/network/interfaces" file to get it to auto connect. See this post: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=198761#p198761 I have not used the GUI, ...
by savageautomate
Sun Oct 21, 2012 4:58 am
Forum: General discussion
Topic: how to start wireless adapter on boot
Replies: 10
Views: 23643

Re: how to start wireless adapter on boot

... Here I'm wondering if there's a way to let my RPI wifi work on boot automatically? Thank you. Absolutely! Take a look at this article for installation and configuration steps. Since it's already working for you via the GUI, it sounds like you can probably just skip down to the configuration sec...
by savageautomate
Sun Oct 21, 2012 4:51 am
Forum: General discussion
Topic: Pi compatible WIfi adaptor
Replies: 27
Views: 37701

Re: Pi compatible WIfi adaptor

Hey guys, This is my first post on the forum. I just purchased a R Pi and I am in the process of setting it up. I purchased the Edimax EW-7811Un 150 Mbps Wireless 11n Nano. I dont know if it will work or not but I will post when it comes in. Im pretty excited about the whole process, my purpose is ...
by savageautomate
Sun Oct 21, 2012 4:43 am
Forum: General discussion
Topic: chances of interferences between wireless keyb - wifi dongle
Replies: 2
Views: 753

Re: chances of interferences between wireless keyb - wifi do

I can't answer the interference question as I don't have a Rii keyboard, but the EW-7811Un is a great choice. I am using that WiFi adapter on three Pi's with no problems at all. The Pi can certainly power the EW-7811Un without a powered USB hub. I am also using a wired Logitech keyboard at the same ...
by savageautomate
Sun Oct 21, 2012 4:35 am
Forum: General discussion
Topic: Installation instructions Edimax EW-7811Un WiFi USB
Replies: 5
Views: 92272

Installation instructions Edimax EW-7811Un WiFi USB

I posted a new blog article providing a step-by-step set of instructions for installing the popular Edimax EW-7811Un Wireless 802.11bgn USB Adapter. This set of instructions excludes the complicated driver installation steps since this driver is now provided in the latest Raspbian distributions. htt...
by savageautomate
Sun Oct 21, 2012 4:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Additional RS232 hardware interface board/adapters
Replies: 1
Views: 2889

Additional RS232 hardware interface board/adapters

I have posted a new blog article on additional RS232 serial interface hardware and wiring diagrams for connecting to the Raspberry Pi: http://www.savagehomeautomation.com/projects/raspberry-pi-rs232-serial-interface-options-revisit.html It covers a USB to serial adapter option: http://www.savagehome...
by savageautomate
Sun Oct 21, 2012 4:21 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: HowTo: Serial connection to Raspberry Pi (Java, RXTX, UART)
Replies: 5
Views: 22310

Re: HowTo: Serial connection to Raspberry Pi (Java, RXTX, UA

Great article! You can also communicate via the serial port using the Pi4J project. The serial communication is based on Gordon's WiringPi serial interface. http://pi4j.com/example/serial.html RXTX is certainly a more feature rich serial communications library, but basic serial communication can be...
by savageautomate
Sun Oct 14, 2012 5:18 pm
Forum: Other programming languages
Topic: Pi4J - A Java library to interface with the Raspberry Pi
Replies: 57
Views: 49593

Re: Pi4J - A Java library to interface with the Raspberry Pi

I understand this, but how can I change the pin from output to input or vice versa in my application? In general, how can I "close" a pin in the code, so that it doesn`t exist any longer? Use the pin.setMode() ( and in versions 0.0.2-SNAPSHOT and earlier pin.setDirection() ) to change an input to a...
by savageautomate
Tue Oct 09, 2012 7:14 am
Forum: Other programming languages
Topic: Pi4J - A Java library to interface with the Raspberry Pi
Replies: 57
Views: 49593

Re: Pi4J - A Java library to interface with the Raspberry Pi

A new 0.0.2-SNAPSHOT build has been deployed. A new defect was found in the last build. The latest wiringPi sources now include both a static and shared library in the build. The libpi4j native lib was originally getting linked against the static wiringPi lib but now that both static and dynamic lib...
by savageautomate
Tue Oct 09, 2012 5:58 am
Forum: Other programming languages
Topic: Pi4J - A Java library to interface with the Raspberry Pi
Replies: 57
Views: 49593

Re: Pi4J - A Java library to interface with the Raspberry Pi

Thanks for the nice pi lib. A i2c bus implementaition into the lib would be very nice, so we can use more than 8 gpio ports. It's definitely on the TODO list. Trying to get all GPIO issues resolved and documented first. I would like the see the library offer support for the following IO: - GPIO - S...
by savageautomate
Mon Oct 08, 2012 1:06 am
Forum: Other programming languages
Topic: Pi4J - A Java library to interface with the Raspberry Pi
Replies: 57
Views: 49593

Re: Pi4J - A Java library to interface with the Raspberry Pi

Just a heads up, Several users have sent emails with issues related to the error message " unsatisfied link error /tmp/libpi4j.so ". I was finally able to sit down today and work out this issue. It turned out to be an incompatibility between soft-float ABI and hard-float ABI. Basically the native li...
by savageautomate
Sun Oct 07, 2012 6:47 pm
Forum: Other programming languages
Topic: Pi4J - A Java library to interface with the Raspberry Pi
Replies: 57
Views: 49593

Re: Pi4J - A Java library to interface with the Raspberry Pi

Hello, i 've tried your ListenGPIOExample successfully with one button. No I try to listen to two buttons. Without success. Do you have an idea to fix the problem. Thanks Hi bumann, I have recorded the defect here: https://github.com/Pi4J/pi4j/issues/2 A new 0.0.2-SNAPSHOT build is now available wi...

Go to advanced search