问题标签 [raspberry-pi3]
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.
linux - 如何解决恐慌:没有可访问的服务器
我正在尝试使用 Raspberry pi 来托管leanote,当我尝试运行leanote 二进制文件时,它会在无法访问主机的情况下给我这个错误,可能的原因是什么?
对不起,我是这个 XD 的新手
php - HP 启动:无法加载动态库
如何解决这个问题
download - 如何在 Raspberry Pi 3 上下载 Windows IoT
我正在尝试下载 Raspberry Pi 3 的 Windows 预览版,但我不知道如何找到下载链接。
我试过的
- 注册了 Insider @“ Windows Insider ”
- 尝试在 Raspberry pi 3 上遵循本教程 IoT
- 但是,当我点击获取 Windows 10 IoT Core Insider Preview时,我总是会看到此页面Windows IoT 下载
在过去的几个小时里,我一直在试图弄清楚,为什么总是说要注册为 Insider 而我已经是 Insider?
任何帮助表示赞赏。
问候
powershell - Visual Studio 无法连接到 Windows IoT 树莓派
我正在使用 Windows Insider Build 14342 windows 10 操作系统。尝试连接到树莓派 3。我已经在 Raspberry 中安装了物联网核心,我可以使用 putty 和 powershell 连接到设备。由于某种原因,Visual Studio 没有部署我的应用程序。
它是来自 ms-iot github 的一个基本闪烁示例。我已经设置了 ARM、远程设备并给出了设备的 IP 地址,在项目的属性中选择了通用(未加密协议)。
该项目构建良好并且没有部署到我的设备上。我是不是错过了什么。
java - java.library.path 中没有 dhtreader
我试图让这个 maven项目在 Raspberry Pi 3 上运行,但 DHT11 传感器给了我以下错误:
文件夹\src\main\java\com\epam\llpd\greenhouse\sensor
中有dhtreader.c
文件。
我确实使用以下命令编译了一个二进制对象:
dhtreader.so
放置在与 相同的文件夹中.jar
。
dhtreader.c 文件是特定于 Raspberry Pi 使用 DHT11 和 DHT22 传感器的通用 C 类,它在许多 Raspberry Pi 项目中使用,并且有很多类似的源。
这个 C 类 (dhtreader.c) 通过使用。JNI/C 但由于上述错误,它不起作用。
我已经尝试java.library.path
在 java main 中使用以下方法设置:
那没有帮助。相反,我添加-Djava.library.path=./
到 java 命令:
但这也无济于事。
现在我被卡住了,不知道如何dhtreader.so
将java.library.path
.
我如何添加dhtreader.so
到java.library.path
?
我首先在Raspberry Pi StackExchange中询问,但他们认为这是题外话。
python - 无法从 MySQLdb 数据库中获取数据
[在此处输入图片描述][1]我目前正在为学校制作一个项目,并且到达墙壁的时间已经到来。
我正在尝试从 Raspberry Pi 3+ 上的 USB 端口获取数据。我已经连接了一个 Arduino Nano,并通过 USB 端口从它发送一个字符串(RFID 卡的十进制 UID 号)到 Pi。这里一切正常,我可以毫无问题地打印出字符串(ID)。我正在将卡中的 ID 与数据库中的 ID 进行比较,如果我输入一个静态数字(在代码下方注释),它会打印数据。但是,如果我尝试使用串行线路,则没有任何反应。似乎它根本不获取数据。我的数据库的前景在下面,python 代码也是如此。提前致谢 !!
#!/usr/bin/env python
输出图像(无错误):[1]: http: //postimg.org/image/jf2doogrv/
powershell - 工作中的 powershell 脚本不会按计划任务运行 (Windows IOT - RPI 3)
我们想让我们的应用程序自动升级。由于 Windows IOT 没有 Windows Store,我们必须手动进行。
这是我们的解决方案。如果我们的网络服务器上有新版本,我们的应用程序每 7 天检查一次。如果是,应用程序将其下载到文件夹 \LocalState\Install 中。
下一部分是 powershell 脚本,它每小时检查该文件夹中是否有文件。如果是她安装它。
问题是我们无法将脚本作为计划任务启动,也无法使用 powershell -File 运行它(我们尝试了 UnRestricted、Bypass 和 RemoteSigned 的所有选项,我们还对其进行了签名)。
脚本没问题,当我们从命令行启动它时它就可以工作。
有什么解决办法吗?请帮忙 :)
php - 树莓派通过 php 从 USB 端口读取 arduino 数据
我有一个通过 USB 端口连接到我的 Raspberry pi 的 Arduino Nano,我正在尝试读取作为 RFID 卡 ID 的传入串行数据。这是我的 php_serial 代码
// 首先我们必须指定设备。这适用于 linux 和 windows(如果 // 你的 linux 串行设备是 /dev/ttyS0 用于 COM1 等)
// 我们可以改变波特率、奇偶校验、长度、停止位、流控制
// 然后我们需要打开它
// 读取内容
我在浏览器中打开页面,但没有看到任何数据。它只是空白。
顺便说一句 - Arduino 代码:
// 主程序
// 功能
编辑:来自 Arduino 的数据仍未显示在网页上。
raspberry-pi - Raspberry PI 3: Wireless hotspot (from WiFi to WiFi instead of ethernet to WiFi)
I would like to turn my Raspberry PI 3 into something like WiFi signal amplifier, Wireless repeater/extender or WiFi hotspot which can amplify weak WiFi signal.
After doing some research, I found this tutorial, Click here.
I try to follow the answer provided adityap174:
- turn off network manager service as it interferes with virtual interfaces
- turn down wlan0 using ifconfig wlan0 down
- create access point interface and assign it a different mac and ip address
- turn on hostapd at this access interface
- use dnsmasq to assign the connecting clients at this interface, ip addresses and give the default gateway as the ip of the station interface to be created
- turn on dnsmasq at the access interface.
- create new interface assign it separate mac address and connect it to the network by assigning essid and using dhclient to obtain ip address.
- if necessary perform ip masquerading through iptables command
I creates the new interface and the AP appears perfectly, but I fail to obtain the IP address when I try to connect the AP.
Software I install: hostapd and dnsmasq
I use wlan0 as station and myAcc as AP.
My command:
In hostapd.conf:
In dnsmasq.conf:
In sysctl.conf, net.ipv4.ip_forward has set to 1
apache - 多个 MVC 应用程序的 Apache mod_mono 设置,无需编辑 apache 配置
我正在运行 Raspbian Jesse 的 Raspberry PI 3 上使用 Apache 和 mod_mono 设置单声道服务器。我已经安装了 mono 和 mod_mono 并正常运行。
这是我想要的文件夹结构
- /var/www/html
- 应用程序1
- 应用程序2
我想配置 Apache,以便我可以简单地将新的 .NET mvc3 应用程序复制到 /var/www/html 正下方的文件夹中(即 /var/www/html/App1),并且每个应用程序都将自动启动作为 MVC3 应用程序工作,而无需为每个应用程序添加一个条目到 apache 配置中。
MonoAutoApplication enabled
在这种情况下不起作用,因为我不提供 .aspx 页面(或任何其他 .net 文件),而是这些是 MVC 应用程序。
这种方法的好处是我可以将此配置文件与每个应用程序一起保存在版本控制中。然后,当从头开始启动服务器时,部署应用程序时需要完成的配置更少。
关于如何处理这个问题的任何想法?