raspberry-pi2

Windows IoT - USB Printer

♀尐吖头ヾ 提交于 2019-12-11 10:20:04
问题 The question is similar to question in this thread Windows IoT - Zebra Bluetooth Printer . I have a Zebra GX420d printer. The only difference is, it is not connected via Bluetooth but via USB. I can't seem to get it paired with my raspberry pi 2. I need to print something out (like "Hello world"). Please help. Update: So, i installed the usb driver for the printer, now the Raspberry can see it, but i still can't write anything to the printer. Now i get the "Attempted to read or write

Using DeviceID from Windows.Devices.Enumeration to find the Drive Letter of a Removable Drive (USB) in C# Windows 10 IoT Core?

折月煮酒 提交于 2019-12-11 05:52:33
问题 I am trying to scan a USB drive that is inserted into a Raspberry Pi running Windows 10 IoT Core for a specific file in a specific folder. I am currently able to detect when a USB drive is added or removed from the device using Windows.Devices.Enumeration.DeviceWatcher and can find the DeviceId using that as well. I did this using the DeviceEnumerationAndPairing demo project. I am aware that StorageDevice.FromId() would work for this usually but it seems to not agree with Windows 10 IoT Core.

ImportError: cannot import name Pubnub

≡放荡痞女 提交于 2019-12-11 00:49:29
问题 I am trying to control an LED on my Raspberry Pi with the Pubnub platform. I just started and I tried this tutorial: https://www.pubnub.com/blog/2015-05-27-internet-of-things-101-getting-started-w-raspberry-pi/ However, when I want to execute a Python file that imports the Pubnub library with the following line: from pubnub import Pubnub I get this error message: ImportError: cannot import name Pubnub I did everything exactly as told in the tutorial. I even copied the .py classes from their

Cannot import matplotlib into Python 3

痴心易碎 提交于 2019-12-10 21:17:34
问题 I am attempting to teach myself programming and keep running into problems downloading modules I need for basic tutorials. My latest attempt has been to get the matplotlib module into my Python 3 environment. I have tried so many different install packages and so many advice I found on the internet that I cannot remember how I originally got the module. But it seemed that everything went well with the installation process. I am using a Raspberry Pi2 throughout all of this with the Raspbian OS

Is there any way to retrieve a local variable from a running function?

旧巷老猫 提交于 2019-12-10 18:31:15
问题 Desperate. Say we have the following: def main(): ALotOFCode list1 = [] list2 = [] while condition: # a lot of times where raw_input is used in this loop # e.g. x = raw_input('lots of steps to compute x') y = raw_input('lots of steps to compute y') list1 = list1.append(x) list2 = list2.append(y) stream.write({'x':list1,'y':list2}) #send new data point to plot.ly via raspberry pi I don't know what happened. But my plot in plot.ly is gone. Deleted completely. I was messing with what I had on

How do I build OpenCV with TBB on Raspberry Pi?

与世无争的帅哥 提交于 2019-12-10 16:00:01
问题 I am trying to build OpenCV with TBB to enable multi-threading. Note: I am able to build OpenCV-2.4.10 without TBB from source and then use the OpenCV Python bindings. When I try a fresh install and building OpenCV with TBB installed the WITH_TBB=ON flag I am then unable to import cv2 - I take this to mean something has gone wrong in the build process. Here's how I'm trying to do it: # Download, unpack and build TBB: wget -O ~/tbb43_20150316oss_src.tgz --no-check-certificate https://www

How to get the processor serial number of Raspberry PI 2 with Windows IOT

徘徊边缘 提交于 2019-12-10 01:59:07
问题 I need to get the processor serial number of a Raspberry Pi2 that is running windows 10 IoT. 回答1: Usually this is within the Windows.System.Profile.HardwareIdentification namespace. Unfortunately, that's one of the unsupported namespaces with Win10 IoT Core. Instead, to identify the metal, I'm using info from the network adaptor(s): public static HashSet<string> NetworkIds() { var result = new HashSet<string>(); var networkProfiles = Windows.Networking.Connectivity.NetworkInformation

USB Microphone not working with Windows IOT Core

懵懂的女人 提交于 2019-12-09 23:05:56
问题 I tried both the November 2015 release (build 10586) and the Feb 2016 Insider Preview release (build 14262), however my USB microphone is not working with Windows 10 IOT core . Scenario: I am creating a speech recognition based program using windows IOT Core. I am using Windows.Media.SpeechRecognition api for this job. When I run the program on a simulator in my Window 10 PC using Visual Studio 2015, microphone works and sound gets detected and the program functions as required. However when

GHCi on raspberry pi 2?

落花浮王杯 提交于 2019-12-09 15:56:59
问题 I'm working on a few haskell projects that run on a raspberry pi 2 and the version of ghc that you can install with apt-get from raspbian (7.4.1). It has no GHCi though, which prevents some vital packages (like Vector) from compiling. I've seen a few rumors about being able to get later versions of ghc (with ghci) onto the pi, but nothing recent. The entry on the haskell wiki looks a couple years out of date. Has anyone had any luck with this? 回答1: I have had some luck with this! sagemuej

How to INSTALL & RUN QML QtWebEngine & QtWebKit on SBC using Yocto / Unable to fetch URL from any source

懵懂的女人 提交于 2019-12-09 15:50:01
问题 Environment Debian GNU/Linux 7.8 (wheezy) Linux marvin 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 GNU/Linux Raspberry Pi 2 Yocto Poky Qt5 My goal is to run Chromium layout web engine on the RPi2 I want to be able to run this on my RPi2: import QtQuick 2.1 import QtQuick.Controls 1.1 import QtWebEngine 1.0 ApplicationWindow { width: 1280 height: 720 visible: true WebEngineView { id: webview url: "http://www.qt-project.org" anchors.fill: parent } } How I created my