問題タブ [raspberry-pi2]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1057 参照

c++ - nodejsでRFSnifferとcodeSendを実行する

どちらのツールもこちらから入手できます: https://github.com/ninjablocks/433Utils/tree/master/RPi_utils

433mhz デバイスを管理するためのシンプルなインターフェイスが本当に必要です。しかし、私は良いものを見つけることができません。

そのため、nodejs の RCSwitch クラスへのラッパーを作成しようと、1 日中作業を続けてきました。send[code] - receive[callback[code]] の 2 つの単純なメソッドを使用

RCSwitch クラスの新しいインスタンスを作成しようとすると、このエラーが発生します。

node-gyp で完全にコンパイルされますが、ノードを実行すると失敗します。

次に、exec を使用して、コードで sendCommand を実行します。(醜い私は知っている)

そして、RFSniffer を次のように動作させようとしました。

  1. ./RFSniffer > rfsniffer.log
  2. .次に、rfsniffer.log を tail -f します。

しかし、RFSniffer は私に何のデータも与えてくれません。

したがって、私の質問は、RFsniffer を tail -f で動作させるのを手伝ってくれる人はいますか? または、nodejs の c++ アドオンを修正するのを手伝ってくれる人がいるかもしれません:)

ラッパーコードは次のとおりです。

nodejsコード:

0 投票する
1 に答える
8304 参照

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

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:

How I created my RPi2 image

I have successfully created an image for my RPi2 using Yocto using this unique and amazing tutorial in portuguese and this one in english

here after in a few line how I was able to generate a image for my RPi2

then

after a few hours I could pick the image built ~/yocto/build-dizzy/tmp/deploy/images/raspberrypi2/qt5-image-demo-raspberrypi2.rpi-sdimg

... and copy to a microSD card e.g.

The ISSUE: QtWebEngine is not installed

... but when I tried to run this simple QtWebEngine example I got an error saying that QtWebEngine is not installed:

... so I added QtWebEngine recipe to my bitbake image configuration and ran in my image configuration

The ERROR - RESOLVED

The LOG

indeed this give me a 404 and that's my issue

but I check this and it works

Doesn't anyone know how to fix this?

As a matter of fact I have the same problem with QtWebKit

UPDATE - COMPILATION PASS - How do I run QtWebEngine?

Compilation/Installation part of QtWebEngine was addressed. I was able to compile the QtWebEngine /usr/lib/qt5/libexec/QtWebEngineProcess. The simple QML script still doesn't find the QtWebEngine, I think it is expecting /usr/lib/qt5/qml/QtWebEngine which I am not able to generate.

QML is not a hard requirement. I just need to be able to compile and run a very simple Qt5 application that will load a Web page with the Chromium Layout Engine capabilities hence the requirement of QtWebEngine.

UPDATE Added QtWebEngine QML plugins - Can't figure out the IMPORT VERSION

QtWebEngine Files installed

Looks like it's version 0.9

Changed import version to 0.9 import QtWebEngine 0.9

Now getting a different error, but a blank (white then red) canvas is opening

Indeed no .pak file present

No QtWebEngine plugins.qmltypes (?)

packages

on my build machine

Simple QML QtWebEngine not showing web page QUESTION on Stackoverflow

0 投票する
1 に答える
4192 参照

python - Raspberry Pi 2 で RPi.GPIO セットアップを使用すると「セグメンテーション エラー」が発生する

使用するとエラーが発生しますgpio.setup(pin, GPIO.OUT)

現在、Raspberry Pi 2 には Ubuntu Mate を使用しており、Python 2.7 とpython-rpi.gpio 0.5.10.1モジュールを使用しています。

SegmentationFault入力しようとするとスローされますGPIO.setup(pin, GPIO.OUT)

編集:これは私が取り組んできた私のコードです

問題がわかりません。python-rpi.gpio が事前にインストールされている Raspbian には問題がないので、python-rpi.gpio モジュールに関連していると思いました。

0 投票する
1 に答える
856 参照

node.js - Node.js Windows ユニバーサル アプリを Windows 10 IOT Core のスタートアップ アプリとして設定する方法

Microsoft IOT の Github ページHello, World Node.js Windows Universal Sampleからサンプルを作成しましたが、このバックグラウンド アプリを起動するように設定したいと思います。

を使用することになっていることはわかっていますiotstartupが、私のアプリ名は何ですか? 私が見るのはこれだけです: