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
-1
votes
1 answer

Send string from native C dynamic library (.so) to VB .net in Mono Linux

I want to send a string from unmanaged C-code to managed VB .Net that runs at a Raspberry pi running Linux and mono. I debug the Dynamic C library (.so) in netbeans by calling the dynamic C library from c++. This works like a charm, but when I call…
narancha
  • 309
  • 2
  • 16
-1
votes
1 answer

Java - headless mode - Raspberry Pi

I have a Java Application that runs on a Windows OS, desktop machine with a nice graphical user interface. I updated, modified etc. to get it running on a Raspberry Pi 2B. It just runs about fine. However you would notice that the GUI interface is a…
RG01
  • 121
  • 1
  • 1
  • 9
-1
votes
5 answers

c# (Windows IoT) - Sleep() or Delay()?

How can I write a timecritic backgroundapplication for Windows IoT in C#? The target is to Programm a stepper Motor via C# over the Raspberry Pi 2 with Windows IoT and Visual Studio 2015. Prgramming via Remote-Debug works fine but there is no sleep…
Danex
  • 61
  • 1
  • 7
-1
votes
1 answer

SVO : Fast - Coner Detector - Installation: Plain CMake (No ROS)

I'm working on a project of drone and I'm having an issue with my Raspberry Pi 2 B. When I'm trying to install Fast - Corner Detector I get this on screen pi@raspberrypi ~/workspace/fast/build $ make /usr/bin/cmake -H/home/pi/workspace/fast…
Martin
  • 27
  • 6
-1
votes
2 answers

close epiphany browser if usage is 0 using shell script

I have written an executable shell script which is meant to close the epiphany browser on my raspberry pi if the browser usage is 0. If i run the following command i see values above 0 if the browser in use and if its not then its 0: top -b -n 1 |…
-1
votes
1 answer

Interrupts using GPIO and python 3

I have a raspberry pi and I was wondering if there was a way to interrupt a program using a GPIO pin? For example, the pi begins printing a long story but if i click a button and close the switch it will pause and turn on a led. I did some research…
-1
votes
1 answer

Insert JSON format in Mysql query using C++

I am using JSON format to save data in my c++ program , i want to send it to MySql database (the table tab has one column with type : TEXT) but the query failed (tested also VARCHAR and CHAR ) this is a part of the code since we are not interrested…
The Beast
  • 1,629
  • 2
  • 29
  • 42
-1
votes
1 answer

Which camera to connect with Raspberry pi2

Using a compatible usb webcam or pi cam. Which of these two is better in the way of controlling the capture settings like iso, exposure time, etc ? And which of these will be more energy efficient and easier to integrate with pi.
-1
votes
1 answer

I'm trying to create a tkinter (python 3) application on raspbian, but won't repeat drawing

My code is as below; it should draw random colour and size circles repeatedly, but only draws one. I have tried countless combinations of mainloop() and window1.update() but always have the same problem. #!/usr/bin/env python3 from tkinter import…
Oliver
  • 7
  • 1
  • 6
-1
votes
1 answer

Do I need Bluetooth 4.0 dongle to detect iBeacons on Raspberry Pi?

I've a working version of a Raspberry Pi with a Bluetooth 4.0 (CSR) dongle that detects iBeacons (estimote) proximity using latest BlueZ. It's working great but I don't know if I need a BT 4.0 capable device, or I can detect iBeacons with an older…
-1
votes
1 answer

No data being sent from RaspberryPi IoTF Quickstart recipe

I have a RaspberryPi2 running the Quickstart recipe following instructions on https://developer.ibm.com/iotfoundation/recipes/raspberry-pi/ This includes installing the "quickstart" - grabbing the files from curl -LO…
-1
votes
1 answer

Slow to send camera images via UDP

I am trying to stream images from a Camera on my Raspberry Pi via UDP. I'm receiving / displaying them on an Android device. According to my calculations, my application sends at a maximum rate of 10fps, but I need 25 fps. Does anyone know how to…
-1
votes
1 answer

C: Threads to replace this?

I'm doing a program, written in C for my Raspberry Pi, to turn on and off some lights depending on whether it's connected or not to the Internet. The code i finished and works as i want it to is this: int doPing() { int stat = system("ping -c 1…
CrossNox
  • 53
  • 1
  • 7
-2
votes
1 answer

Can i run a second web server?

So i own a raspberry pi server which runs a python web server i want to run a second web server on the pi but im not sure if it can handle it. Raspberry pi 2 model B, Python 3, Ubuntu Software,
-2
votes
1 answer

Setup Qt for cross compile for raspberry pi

I want to cross compile a project from my linux machine to a raspberry pi using Qt creator. Now I have set up a kit with compilers (that I tested to work) and a sysroot. However when I try to compile a simple "Hello world" example in Qt creator I…
Frank
  • 2,446
  • 7
  • 33
  • 67