raspbian

树莓派3B+(一)

纵然是瞬间 提交于 2021-02-16 23:42:14
一:安装raspbian系统    介绍: Raspbian是为树莓派设计,基于Debian的操作系统,由一个小团队开发。其不隶属于树莓派基金会,但被列为官方支持的操作系统。   下载地址: https://www.raspberrypi.org/downloads/ (建议用IDM下会快一点)   IDM破解 永久有效链接: https://pan.baidu.com/s/1ee8jnw9C5RBn-uzCXm-K8A 提取码: dfiu      有三种版本的镜像:   Raspbian Stretch with desktop and recommended software(带图形桌面和推荐软件)   Raspbian Stretch with desktop(带图形桌面) 推荐这个   Raspbian Stretch Lite(最简版)      下载完后会有个 raspbian-stretch.img 镜像文件,我们将其写入树莓派。   或者:用浙大的镜像源 http://mirrors.zju.edu.cn/#image-list 用配置生成器生成配置文件。    二、将镜像文件写入SD卡   首先将TF卡连接到读卡器,插入电脑。 1、下载SDFormatter格式化SD卡    下载地址: https://www.sdcard.org/downloads

BCM2708 (RPi) Rasbpian FIQ not triggered

风格不统一 提交于 2021-02-10 11:46:23
问题 I have written a Linux Loadable Kernel Module which attempts to attach to the FIQ to service GPIO edge transistions. The Pin in question is on GPIO0 (IRQ 49) so I attempt to configure the FIQ as follows: #ifndef GPIO_BASE #define GPIO_BASE 0x7E200000 #endif #define GPIO_LEN 0x60 #define GPIO_GPEDS0 0x10 #define GPIO_GPEDS1 0x11 #define GPIO_GPREN0 0x13 #define GPIO_GPREN1 0x14 #define GPIO_GPFEN0 0x16 #define GPIO_GPFEN1 0x17 #define AIR_BASE 0x7E00B200 #define AIR_LEN 0x28 #define AIR_IP2 2

No module named future

强颜欢笑 提交于 2021-02-08 12:18:53
问题 I am running a telegram bot in python and i am using python3.6 on raspbian ( pi3 ) Below is my imports: from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import ( bytes, dict, int, list, object, range, str, ascii, chr, hex, input, next, oct, open, pow, round, super, filter, map, zip) from uuid import uuid4 import re import telegram from telegram.utils.helpers import escape_markdown from telegram import InlineQueryResultArticle, ParseMode, \

No module named future

笑着哭i 提交于 2021-02-08 12:17:59
问题 I am running a telegram bot in python and i am using python3.6 on raspbian ( pi3 ) Below is my imports: from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import ( bytes, dict, int, list, object, range, str, ascii, chr, hex, input, next, oct, open, pow, round, super, filter, map, zip) from uuid import uuid4 import re import telegram from telegram.utils.helpers import escape_markdown from telegram import InlineQueryResultArticle, ParseMode, \

Python Bluez GATT server - client cannot disconnect

余生颓废 提交于 2021-02-08 07:55:05
问题 I've been working on a simple bluetooth GATT server app working on a Raspberry pi 3 model B. This app uses Bluez (version 5.49) to advertise services and characteristics. The app is based on the following example: https://github.com/Jumperr-labs/python-gatt-server So far I have almost ended the server: clients can read and write in characteristics and services are advertised. The problem appears when the clients attempt to disconnect to the server. The server seems to be rejecting

Python Bluez GATT server - client cannot disconnect

半腔热情 提交于 2021-02-08 07:54:52
问题 I've been working on a simple bluetooth GATT server app working on a Raspberry pi 3 model B. This app uses Bluez (version 5.49) to advertise services and characteristics. The app is based on the following example: https://github.com/Jumperr-labs/python-gatt-server So far I have almost ended the server: clients can read and write in characteristics and services are advertised. The problem appears when the clients attempt to disconnect to the server. The server seems to be rejecting

How to avoid flipping between ttyUSB0 and ttyUSB1 when reconnect to USB port under Python using pySerial?

混江龙づ霸主 提交于 2021-02-07 09:20:06
问题 I have a serial Python program, Linux environment (Raspbian / Raspberry Pi), that uses a serial port via USB & serial adapter. I need to handle a situation when the user unplug the USB adapter and then re-insert it. The problem is that, on reconnect, the ttyUSB0 becomes ttyUSB1 and so the port is no longer found. However, if I stop the Python program (keyboard interrupt) and again unplug and re-insert the USB adapter, then the port goes back to ttyUSB0 (and so I can start over again). This

How to avoid flipping between ttyUSB0 and ttyUSB1 when reconnect to USB port under Python using pySerial?

蹲街弑〆低调 提交于 2021-02-07 09:16:21
问题 I have a serial Python program, Linux environment (Raspbian / Raspberry Pi), that uses a serial port via USB & serial adapter. I need to handle a situation when the user unplug the USB adapter and then re-insert it. The problem is that, on reconnect, the ttyUSB0 becomes ttyUSB1 and so the port is no longer found. However, if I stop the Python program (keyboard interrupt) and again unplug and re-insert the USB adapter, then the port goes back to ttyUSB0 (and so I can start over again). This

How to avoid flipping between ttyUSB0 and ttyUSB1 when reconnect to USB port under Python using pySerial?

大憨熊 提交于 2021-02-07 09:16:07
问题 I have a serial Python program, Linux environment (Raspbian / Raspberry Pi), that uses a serial port via USB & serial adapter. I need to handle a situation when the user unplug the USB adapter and then re-insert it. The problem is that, on reconnect, the ttyUSB0 becomes ttyUSB1 and so the port is no longer found. However, if I stop the Python program (keyboard interrupt) and again unplug and re-insert the USB adapter, then the port goes back to ttyUSB0 (and so I can start over again). This

Response to IP Forwarded Port not coming back

本秂侑毒 提交于 2021-01-29 09:33:47
问题 tl;dr: I have a problem whereas a Port Forwarding is not working properly. The response never seems to come back (times out), despite seeing packets all the way. Situation In short: https://raspberry-ip:5555 should load https://server-ip:9999 but it doesn't despite the fact that the port forwarding seems to be working. I have a server which replies to port 9999 with a website. I can access directly from my laptop. I have a Raspberry Pi, which forwards the traffic to the server from local port