Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [c#]

For questions pertaining to compiling C# programs on the Raspberry Pi.

1
vote
0answers
13 views

Extract Images from Video Stream

I have been mucking round with lots of different ffmpeg options. I have plenty of browser tabs open with web pages for me to read through. One caught my attention though as it had this comment: ...
0
votes
0answers
37 views

Should I use C# or QT

I would like to implement some RPI-nodes around the house with a 3.5 inch display and a simple GUI. I would like them also to connect with Internet/Cloud. My initial approach would be a C# app on ...
0
votes
1answer
39 views

Raspbian -.net core application won't reload configuration

Issue: I am running a .net core application on a Raspberry PI. I am loading the configuration from a JSON file and storing in a class for reference in the application - a hosted service in this case. ...
0
votes
1answer
94 views

Mono for Raspberry Pi Zero

I am trying to run a simple "Hello, World" C# app on my Raspberry Pi Zero. It works fine on my Raspberry Pi B+, but I get an "illegal instruction" error on the Zero. In both cases, I am compiling ...
1
vote
0answers
19 views

How to use Raspberry.IO.SerialPeripheralInterface?

I found the package which is possible communicate in SPI mode, but I dont found a way to use with sucess. So, Anybody could show how to use this package? I am currently using C# in Xamarin.
1
vote
0answers
24 views

How to communicate Raspberry Pi 3 with Arduino via ISP with C#?

Currently need use the Xamarin as IDE. I need communicate a raspberry as master with a Arduino Pro mini as slave using C#. I dont know how to call/set the MISO and the MOSI. I believe that have a ...
0
votes
0answers
62 views

C# mono - How to convert jpg image byte array and set into picturebox?

I am a newbie to mono C# programming in raspbian os (pi3 b). I have written a fingerprint scanner application in C# and using mono, I am running the same application in Raspbian os under the pi3 ...
1
vote
1answer
203 views

Trying to run a C# Discord Bot on Raspberry Pi 3 Model B+ with Windows 10 IoT

I have developed, in Visual Studio 2015, a C# Console Application which uses the Discord.Net API. It works great running on my PC, which has Windows 10, however I am looking to run the program 24/7 on ...
1
vote
0answers
75 views

GPIO Library in Windows Visual Studio 2012 (C#)

I am developing an application in Visual Studio 2012 (C#) + Raspberry Pi 3 and I have some problems in accessing the GPIO of Raspberry Pi 3. Does anyone recommend any library that access GPIO for ...
0
votes
1answer
82 views

Unosquare.RaspberryIO: unregister from InterruptCallback

I'm developing an application on C# using Unosquare.RaspberryIO. My question related to interrupts and callbacks. According to the documentation, it's possible to register callbacks. For example: pin....
0
votes
0answers
41 views

Windows IoT background application with Web frontend

I followed the official tutorial to create a simple background application. I want to add a Web frontend with ASP.NET Core to the project, with either MVC or WebAPI. Can't find any documentation on ...
1
vote
0answers
69 views

Httplistener on Raspberry Pi

I have an asynchrone Webserver in C# and it runs perfect on Windows. I get a Request every 20 ms and its answering directly. I published my solution for linux-arm with the command: dotnet publish -...
0
votes
0answers
58 views

Synchronizing Rasclock v4.0 to Windows IOT using UWP application

the annoying lack of raspberry is absence of Real Time Clock Support and somewhat it has a sound card. Thus. I installed an RTC Module DS3231. soon has malfunctioned (integrated battery somehow died ...
0
votes
0answers
383 views

Running my own Discord.Net bot

I recently got a RPi3B for my birthday and I just made my own C# discord bot using Discord.Net I created some commands and figured it'd be cool to run it on my RPi so I don't have to have my laptop on ...
0
votes
0answers
130 views

Windows 10 IOT c# UWP copy image file from USB to Pictures

I have been trying to upload images from a usb device to the pictures library on my Raspberry PI running windows 10 IOT. I have looked around and cannot find a way that works. I have a page on my UI ...
0
votes
0answers
53 views

SSH loopback into raspberry PI running windows IOT

I am trying to use Renci SSH to loopback into my pi from code to run a powershell command. When I try to connect it always times out. I can use putty to ssh in with no issues. My code looks like ...
2
votes
1answer
181 views

TMP36GZ/DS1822 Temperature Sensors not outputting any values

I am trying to connect a temperature sensor to my Raspberry Pi using this tutorial for Windows IoT Core. I have connected all of the wires and MCP3002 correctly, but I cannot read in any values from ...
1
vote
1answer
72 views

Windows 10 core with Raspberry Pi

I amusing C# UWP and i am storing sensor data to a database. What I would like to do is send the Sensor name instead of the GPIO Number. So on pin_valuechanged() I like to assign the pinNumber a ...
1
vote
1answer
685 views

How to run a c# web service from a raspberry pi 3?

I want to write a simple web service in c# using Visual Studios, and deploy this service from a Raspberry Pi 3. I know mono is a tool that runs .NET code on Linux machines, but all of the examples I'...
1
vote
1answer
434 views

WIndows IOT StreamSocketListener Stops working

I am having a issue with a socket listener. It will work for a few mins thenjust stops listening. I have tried to enable and disable Compile in .Net option as suggested in other forums with no luck. ...
0
votes
0answers
77 views

Windows 10 IoT Raspberry PI Xaml Question

All, First I want to say thank you to all the people who have helped me to get my app as far as I have it. Because of what I needed it was a hard learning curve. Now I want to improve some of the ...
1
vote
4answers
884 views

TCP Server Windows 10 IOT

I am having problems getting a TCP server to connect. I tried to pull apart the sample and thought I had everything correct. For some reason the server never accepts the incoming connection. Code: ...
2
votes
1answer
591 views

Use SPI pins from ASP.NET Core application on RaspberryPi 3

In my project I have a Raspberry Pi 3 with Windows IoT OS, and I have a RC522 RFID reader. I would like to use this component (RC522) from my ASP.NET Core application. I would like to use this ...
1
vote
1answer
403 views

Change WiFi networks Programatically

Running a Raspberry Pi with Windows 10 IoT Couple questions. is there a way to stop the program from code to enter the boot screen? Is there a way to join see and join wireless networks from code? I ...
1
vote
0answers
100 views

Focusrite USB Mic Drivers

I wanted to use a Focusrite Solo to be able to use a better quality mic with my raspberry pi 3 with windows 10 IoT Core and a Voice recognition program I am developing. I see it as a device in the ...
2
votes
1answer
52 views

Application on Mono stopped working properly

I am running a .Net application under Mono for months now. I did an apt-get upgrade and then after trying to run the application I get NullReference unhandled-exceptions in class constructors. I ...
1
vote
1answer
1k views

Turn off LCD touch screen on Windows 10 IoT Core

I am using 7" touch screen on my RaspberryPi 3 Model B v1.2. My device is running Windows 10 IoT Core and I've designed the kit to run an application I am developing as a UWP application with ...
2
votes
1answer
1k views

Get network interface MAC address with Windows IoT

I'm using Windows IoT Creators Update on my Raspberry Pi 3 and programming with C#. I want to read my network adapter MAC address. When I use NetworkInterface.GetAllNetworkInterfaces() it throws ...
1
vote
1answer
198 views

Windows 10 IOT voice recognition

Good evening, I have been playing with the voice recognition in Windows 10 IOT core and C#. One thing I am having a issue with is keeping the recognition engine running. I have tried looking online ...
2
votes
0answers
239 views

Controlling Stepper Motor with Raspberry Pi 3 and Win 10 IoT

I am working on a project which requires operating bipolar stepper motor with Raspberry Pi 3 and Windows 10 IoT core. I am writing the program in C#. Currently, I am getting the pulses on the motor ...
2
votes
0answers
141 views

Raspberry Pi + Windows 10 IoT Core + RS485

Has somebody ever worked with windows 10 IoT Core and used RS485? I would like to receive some signals from the RS485 device. I would like to do this with Windows universal app.
1
vote
0answers
229 views

How do I get a Unique Identifier for a Raspberry PI within Windows 10 IoT Core (Creators Update)

I tried this Method (found on https://stackoverflow.com/a/31803247/2427812) on Windows 10 IoT Core [Version 10.0.15063] (Raspberry PI 3) to get the HardwareId but the result of GetId() changes every ...
0
votes
0answers
341 views

EMGUCV /C# program developed on Intel i86+Visual Studio combination to be ported to Raspberry Pi (Linux+ARM)

I have a video processing program that I have built on EMGUCV and C# using Visual Studio and an Intel i86 desktop environment. This has been made to work in an Ubuntu 1404 environment with Intel i86 ...
0
votes
0answers
145 views

Library use Character LCD in Windows Iot Core

I am starting using windows IoT Core and I want to display data from sensor in Character LCD 16x2. who can I do that ?
0
votes
1answer
251 views

Deploy-Publish error on Windows 10 IoT Core from laptop, (but from a desktop it works)

I'm getting this issue when I try to publish on a Pi 2 or 3 a "universal app", (my project). It's strange because from my desktop PC (Intel I7 - Win10 Pro - VS 2017), it works well but when I try to ...
0
votes
1answer
214 views

Communication between C and C# program on RPI3

I have a question i wondered by myself if it is possible to communicate between a C# and C programm. I want to use the C# program for the user interface and then send commands to the C program that ...
1
vote
0answers
163 views

Windows IOT Background Task doesn't complete

I just recently started with the Windows 10 IOT Core on the Raspberry Pi 3 and am currently writing my first applications. Everything went well so far, but I noticed, that while debugging an ...
1
vote
0answers
221 views

Cloud-to-Device message to raspi from IOThub

What I am trying to do at this time is control LED lights on Raspi running windows 10. so far I have an application running and waiting for a message to receive. it works fine when I use Device ...
3
votes
1answer
190 views

Does someone in here knows how to rewrite this in C# for an UWP application?

import struct import smbus import sys def readVoltage(bus): "This function returns as float the voltage from the Raspi UPS Hat via the provided SMBus object" address = 0x36 read = bus.read_word_data(...
1
vote
0answers
1k views

How do you get an RFID reader to work with Raspberry Pi 3 and UWP?

everyone! This question is in relation to my Raspberry Pi 3 and Windows 10 IoT Core project. I intend to use an RFID Reader (short range only), along with an universal windows application, plugged to ...
0
votes
1answer
344 views

Activating Pull-down Resistors in C#

I am facing exact same problem as asked here in this question. It's basically the "reading floating values" problem when pull-down resistors are not used. I am unable to activate pull-down resistors ...
1
vote
1answer
423 views

Play sound with mono c# doesn't work on Raspbian

I try to play a sound from a Raspberry Pi 3 with Raspbian installed. I have mono installed. I tested it on Windows, and it runs well. But when running it on Raspbian. I don't get any error message and ...
0
votes
1answer
158 views

Is it possible to write a C# wrapper for some C++ source code? [closed]

I'm running Windows Iot (.NET Core) on my Raspberry Pi. I want to use an RFM69 radio chip that runs over SPI with my Pi. There's a great library I've used before on my Arduino RFM69 projects here: ...
0
votes
1answer
432 views

Using user input from keyboard in UWA

I am working on an app in C# for Rpi 3 (running windows IoT Core). It will need to be able to get input from a keyboard (phisycal, not onscreen) and be able to put that input in a string so it can ...
1
vote
1answer
268 views

Wireless Pi 3 to Pi 3 communication [closed]

I (and a few others) are working on a game a la Lingo. For that we want to have 1 host Pi to which the team Pi's can connect to. This connection would be used to send strings from the teams Pi to the ...
2
votes
0answers
329 views

Bluetooth Scanning [closed]

I'm looking to build an app that scans bluetooth and collects the visible info from devices without pairing. I'm using C# and so far I've got my app listing out all of the pi's devices using ...
1
vote
2answers
2k views

How to use Adafruit TCA9548A 1-to-8 I2C Multiplexer Breakout in C#?

I have an application which reads temperature from a BPM180 sensor with C#. I found this device that would allow to connect multiple devices: Adafruit TCA9548A 1-to-8 I2C Multiplexer Breakout. ...
1
vote
2answers
2k views

Raspberry Pi 3 Model B - Windows IoT RDP Client

UPDATE I have a RPI3B running Raspbian with rdesktop fully working. Now I want it to launch the remote session immediately after logon. There are no "users" on the Raspbian side and my Windows ...
1
vote
1answer
58 views

Raspberry Pi isn't connected as a remote debugger?

I can no longer deploy my app to my raspberry pi as it wont recognize it as a remote debugger . It was working the day before and now it has stopped and I do not know why. It has the windows 10 iot ...
3
votes
1answer
1k views

How do I programmatically retrieve a unique identifier for a Raspberry Pi using C#/Windows IoT?

A question came up recently which requires the generation of a unique identifier for the Pi using Win-Iot/C#. My first thought was to use a MAC code, but the approach that I've found at embedded101....