raspberry-pi3

Android Things: Raspberry Pi screen timeout

流过昼夜 提交于 2019-11-28 05:25:36
问题 I'm building app on Raspberry Pi with Android Things and I have 7 inch touch screen, but the screen never turns off. Is it possible to set timeout like in Android phones? or force it to turn off/on. If I remove the power line and inserted again the screen, it will not work until I reboot. 回答1: There are two system settings that control this process: STAY_ON_WHILE_PLUGGED_IN and SCREEN_OFF_TIMEOUT The STAY_ON_WHILE_PLUGGED_IN setting is set to BATTERY_PLUGGED_AC by default. You can

Pymodbus - Read input register of Energy meter over rs485 on uart of raspberry pi3

主宰稳场 提交于 2019-11-28 01:45:23
I have one energy meter and i am trying to retrieve voltage, freq values from meter on raspberry pi uart over RS485 My connections for raspberry pi and rs485 are as follows Rs485 DI - Tx of raspberry pi Rs485 R0 - Rx of raspberry pi Rs485 DE/RE -Pin 7 of raspberry pi my code is as follows: import serial import RPi.GPIO as GPIO from pymodbus.client.sync import ModbusSerialClient as ModbusClient from pymodbus.register_read_message import ReadInputRegistersResponse from pymodbus.register_read_message import ReadInputRegistersRequest import logging logging.basicConfig() log = logging.getLogger()

Android Things: ADB over USB on Raspberry Pi

自闭症网瘾萝莉.ら 提交于 2019-11-28 01:40:54
I'm playing with Raspberry Pi 3 Model B and Android Things . I was able to configure everything (connect Pi over Ethernet , then reconnect over Wi-Fi with Android.local ) and debug the app. However it's not convenient sometimes to debug over Wi-Fi when I travel and I have to change Wi-Fi networks or don't have Wi-Fi connection at all. I know there is serial debug console , but it seems to be for getting logs and shell commands, not for debugging. Any chance to have direct debugging over USB cable just like any other Android device like smartphone/tablet? The NXP i.MX7D development board has

How can i get JavaFX working on raspberry pi 3

ε祈祈猫儿з 提交于 2019-11-28 01:35:19
问题 please can someone provide me with simple step by step instructions for getting javafx working on raspberry pi 3. I have tried all day to add javafx to raspberry pi 3 and i am still getting the error: "JavaFX deployment library not found in the active JDK" in netbeans when i try to build, even though there are no errors showing in my code. I downloaded the gluon community build for javaFX embedded sdk here: http://gluonhq.com/labs/javafxports/downloads/ and followed the instructions here:

UART peripherals on Android Things for Raspberry Pi 3

五迷三道 提交于 2019-11-27 15:09:40
How do I use UART peripherals on Android Things for Raspberry Pi 3? It seems that by default it is assigned the linux console. proppy By default the UART port is mapped to the linux console, in order to prevent the kernel message from messing around with your peripheral. You can disable the console by mounting the boot partition from the sdcard on your host computer using: mount /dev/sdX1 /mnt/disk where sdX is replaced with your sdcard reader device name (running dmesg after inserting your sdcard into your reader should help you figure out the device name). Then edit /mnt/disk/cmdline.txt to

Android Things with Rasp3 7 inch touchscreen

 ̄綄美尐妖づ 提交于 2019-11-27 07:56:24
问题 I have Android Things OS image installed for my Rasp3 and successfully booted up and log in to shell using adb, but lcd display is upside down with my 7 inch touchscreen display. I wonder if there is config like lcd_rotate=2 in /boot/config.txt on Raspbian? 回答1: You can try to manually mount the boot partition from the sdcard and edit config.txt mount -t msdos /dev/sdX1 /mnt/disk echo 'lcd_rotate=2' >> /mnt/disk/config.txt Where /dev/sdX1 points to your sdcard reader device. Note: This is

What is Android Things Raspberry Pi GPIO max frequency?

↘锁芯ラ 提交于 2019-11-27 07:20:57
问题 Where can be found the characteristics of the switching speed of GPIO port for the Raspberry Pi 3 under Android Things like that? 回答1: In DP2 there is two ways to control GPIO: 1) with SDK using java (analyzed by Harry Fairhead here); 2) with NDK using C/C++ (analyzed by Harry Fairhead here). With SDK using java the fastest pulses seen are around 0.23ms and there are lots of large (up to 8ms) interruptions (!!!) in the pulse train. And with NDK using C/C++ the pulse width is reduced from 0

Pymodbus - Read input register of Energy meter over rs485 on uart of raspberry pi3

假装没事ソ 提交于 2019-11-27 04:49:53
问题 I have one energy meter and i am trying to retrieve voltage, freq values from meter on raspberry pi uart over RS485 My connections for raspberry pi and rs485 are as follows Rs485 DI - Tx of raspberry pi Rs485 R0 - Rx of raspberry pi Rs485 DE/RE -Pin 7 of raspberry pi my code is as follows: import serial import RPi.GPIO as GPIO from pymodbus.client.sync import ModbusSerialClient as ModbusClient from pymodbus.register_read_message import ReadInputRegistersResponse from pymodbus.register_read

Android Things: display isn't working

孤街醉人 提交于 2019-11-27 04:48:26
问题 Earlier I was using my RaspberryPi with Waveshare LCD and Raspbian was installed so there was no issue with display, but now I have Android Things SDK so how can I get display working with it? As Waveshare was providing different image for Raspbian OS, but how to get its driver for Android Things OS? I was following this and this for installation on raspberry-pi. 回答1: As of now Android Things image isn't shipped with a default configuration for display in config.txt file which is located in

How to install Anaconda on RaspBerry Pi 3 Model B

我们两清 提交于 2019-11-27 00:35:28
问题 I would like to know how to install the latest Anaconda version from Continuum on my Raspberry Pi 3 model B. Any help would be appreciated... 回答1: On Raspberry Pi 3 Model B - Installation of Miniconda (bundled with Python 3) Go and get the latest version of miniconda for Raspberry Pi - made for armv7l processor and bundled with Python 3 (eg.: uname -m ) wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh md5sum Miniconda3-latest-Linux-armv7l.sh bash Miniconda3-latest