Questions tagged [raspberry-pi2]

RPI QUESTIONS MUST BE PROGRAMMING RELATED. The Raspberry Pi 2 is a quad-core, ARMv7 instruction set CPU with 1GB of RAM. See the related StackExchange site at https://raspberrypi.stackexchange.com. Also see the first edition's tag at https://stackoverflow.com/questions/tagged/raspberry-pi .

RPI QUESTIONS MUST BE PROGRAMMING RELATED. The Raspberry Pi model 2 is a budget computer that fits in your hand. It has 4 cores, 1GB of RAM, and runs ARMv7-based CPUs.

If the question is not programming related then it may be on-topic at Raspberry Pi Stack Exchange, Internet of Things Stack Exchange or Unix & Linux Stack Exchange.

1237 questions
4
votes
1 answer

ERROR opening V4L interface: Operation not permitted

I compiled mjpg-streamer in my raspberry pi, but when I run the below command, it occured an eeror shown in the title. Details are below: root@raspberrypi:/home/pi/mjpg-streamer-code-182/mjpg-streamer# /usr/local/bin/mjpg_streamer -i…
Zezhou Li
  • 107
  • 1
  • 2
  • 12
4
votes
1 answer

Programmatically Listing and Connecting to WIFI networks on Windows IoT Core

Is there API that lists and allows us to connect to a specific wifi network by providing passcode via C# on Windows IoT Core? I see that it is possible to do it when you are running an OS on the PI other than Windows IoT here via command…
lucidgold
  • 4,432
  • 5
  • 31
  • 51
4
votes
1 answer

How to Deploy a jar onto Raspberry Pi 2 using Maven Plugin

I have a simple java class using Pi4J that contains a main method. I want to build and deploy it to a Raspberry Pi. I'm using java 8 on a windows 10 and my IDE is NetBeans 8.1. If the project is set up to be a normal (non-Maven) Java Application and…
Justin A
  • 364
  • 4
  • 14
4
votes
1 answer

if statement not working in cron

I have the following code: (record.sh) cd $(dirname $0) dt=$(date '+%d/%m/%Y %H:%M:%S'); echo $dt; read action < /home/nfs/sauger/web/pi/action.txt echo $action; if [[ $action == *"start"* ]] then echo "start recording" ./gone.sh exit 1 elif…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
4
votes
2 answers

How to install java (JDK) on snappy?

I am new to Snappy Ubuntu Core, I am building a system which client & server part. In client part I need to install a Java Application Agent. My client device using raspberry-pi-2 and I install Snappy on that.…
cauchuyennhocuatoi
  • 461
  • 3
  • 8
  • 21
4
votes
1 answer

Unable Run Qt5 Video player example on Raspberry Pi

I installed Qt creator(Qt5) and its examples on Raspberry pi 2 B Model. I'm running Raspbian Jessie on it. I tried to Run a Video player example but I end up with an error which was as follows: Starting…
Myanju
  • 1,135
  • 1
  • 11
  • 23
4
votes
2 answers

rc.local is not running on raspberry pi's startup

I'm trying to run a simple C code when the pi boots, so I followed the steps on the documentation (https://www.raspberrypi.org/documentation/linux/usage/rc-local.md), but when I start it, it shows this error: Failed to start etc/rc.local…
Lucas Barbosa
  • 41
  • 1
  • 1
  • 3
4
votes
1 answer

Platform Invoke F# callback functions

I am using F# on a Raspberry Pi 2 (ARM 7 & thus mono). I am currently trying to use the WiringPi library, written in C. I have successfully managed to use some of the functions using P/Invoke. Now I am trying to use interrupts (see…
Jack Chidley
  • 131
  • 9
4
votes
0 answers

Using UWP and Raspberry Pi, how can I measure the frequency of an input that is oscillating on the order of 1000 Hz (1 millisecond period)?

I'm converting some code over from .NET Micro Framework which I was running on a Netduino. The code measures the frequency of a square-wave oscillator that has a maximum frequency of about 1000 Hz, or a period of about 1 millisecond. The application…
Tim Long
  • 13,508
  • 19
  • 79
  • 147
4
votes
1 answer

Java component for showing web pages on embedded devices

I am working on a project on Raspberry PI on Java. We need to show some web pages on the application, so we need a web browser component. We tried to get WebView from JavaFX, but its not available for embedded devices. Therefore, we tried to build…
ayalshimoni
  • 169
  • 1
  • 7
4
votes
2 answers

Using ARM compiled DLL in a Windows 10 IoT UWP Application on Raspberry Pi 2

I am attempting to compile a project as a UWP application for deployment on a Raspberry Pi 2 with Windows 10 IoT installed. The project uses an open source framework that comes with a wrapper and a DLL. I have recompiled the DLL to ARM and have…
Nick
  • 58
  • 1
  • 4
4
votes
1 answer

SSH to RaspberryPi which is connected via iPhone Hotspot

I have a RaspberryPi which is configured to automatically connect to my iPhone's wifi hotspot. I need to take the RaspberryPi to various locations for testing, and I often need to leave it at a location for extended periods of time (without my…
Anon John
  • 53
  • 1
  • 4
4
votes
1 answer

Convert byte to bool in C#

I'm trying make a library to iot core on c# based on arduino library (http://blog.electrodragon.com/rc522-write-a-card-demo-code/) but i don't understand what is: if (!(temp & 0x03)) or while ((i!=0) && !(n&0x01) && !(n&waitIRq)) It's required…
marcos
  • 157
  • 4
  • 14
4
votes
1 answer

Recording RaspberryPi camera to rosbag

I'm trying to configure a RaspberryPi2 to record video data from the camera module to a rosbag. To get the camera working with ROS, I used code I found here: https://github.com/fpasteau/raspicam_node. This works fine, but I have a problem capturing…
user473453
  • 894
  • 2
  • 11
  • 23
4
votes
2 answers

error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’

So I wanted to build this nodejs tool in Raspbian. So as the instructions say I need to npm install I go ahead and install node with apt-get: sudo apt-get install nodejs npm Then I try to compile/install, and I get this error: $ npm install >…
knocte
  • 16,941
  • 11
  • 79
  • 125