raspberry-pi3

Set Android Things time zone

*爱你&永不变心* 提交于 2019-12-08 01:52:48
问题 After installing Android Things on a Raspberry Pi, time is not correct. My time zone is GMT+2, and using date +%Z I see RPi's time zone is GMT. How can I set time zone? 回答1: Update (based on Michal Harakal's comment): Since Developer Preview 6 TimeManager class provides access to device settings related to time (NB! TimeManager requires <uses-permission android:name="com.google.android.things.permission.SET_TIME" /> ). You can use .setTimeZone() method of for time zone set: private void

SMBUS on the RPI gives IOError: [Errno 121] Remote I/O error

与世无争的帅哥 提交于 2019-12-08 00:31:27
问题 I have tried communication between RPi3 and stm32 over I2C. First of all I have installed i2c-tools and python-smbus. All in All I have used python script on the RPI as below: import smbus bus = smbus.SMBus(1) address = 0x0A data = [1,2,3,4,5,6,7,8] bus.write_i2c_block_data(address, 0, data) When I run script, I can see following error: IOError: [Errno 121] Remote I/O error STM32 is configured as I2C slave, both device are connected correctly(SDA, SCL and GND). How do I know that? I have made

windows 10 iot raspberry pi 3 wifi hotspot

假装没事ソ 提交于 2019-12-07 23:14:17
问题 I am trying to make my RPi 3 an AP using Windows 10 IoT core. RPi is connected with internet through Ethernet port and I want to make RPi 3 builtin WiFi to share internet with other devices. I have read documentation page but it is not working for me. I have tried with Windows IoT Onboarding and from PowerShell also. After selecting adapters from IoR Onboarding, clicked on start sharing service and a message appears which says "internet conncetion sharing has started" but I can't find network

Wifi direct connection disconnects automatically after a few seconds in Raspberry Pi

旧街凉风 提交于 2019-12-07 08:13:52
问题 I am using this configuration for wifi direct connection in Raspberry PI 2 B+ ctrl_interface=DIR=/var/run/wpa_supplicant driver_param=use_p2p_group_interface=1 update_config=1 device_name=Raspberry_pi device_type=1-0050F204-1 p2p_go_intent=1 p2p_go_ht40=1 country=IN and then started wpa supplicant using sudo wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/p2p.conf -B and then add new group using sudo wpa_cli -iwlan0 p2p_group_add and then set an IP using ifconfig p2p-wlan0-0 192.168.1

Automation of video recording on booting of raspberry pi3

落花浮王杯 提交于 2019-12-07 07:56:30
问题 I have written a python code which contains some opencv code to play around with my webcam. I have attached it to raspi 3. I want that on startup(booting), it start recording video automatically.. I am using crontab for this. My Python code: import cv if __name__ == "__main__": # find the webcam capture = cv2.VideoCapture(0) capture1 = capture # video recorder fourcc = cv2.cv.CV_FOURCC(*'XVID') #cv2.VideoWriter_fourcc() does not exist videoOut = cv2.VideoWriter('out1.avi', fourcc, 10.0, (640,

Cross compilation: special cross compiler or just gcc with option -march?

谁都会走 提交于 2019-12-07 06:46:32
问题 I need to compile a program for Raspberry PI 3+ on Linux machine, and code must be compliant with c++17 standard. Official toolchain is outdated and lack c++17 compilation option. Two solutions that I can see right now are: 1) gcc has an option -march, which described here: https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html 2) Installing arm-linux-gbueabi-gcc package, as proposed here: Cross-compiling for Raspberry pi with modern gcc What is the difference between two options? Is there some

SMBUS on the RPI gives IOError: [Errno 121] Remote I/O error

前提是你 提交于 2019-12-06 10:55:45
I have tried communication between RPi3 and stm32 over I2C. First of all I have installed i2c-tools and python-smbus. All in All I have used python script on the RPI as below: import smbus bus = smbus.SMBus(1) address = 0x0A data = [1,2,3,4,5,6,7,8] bus.write_i2c_block_data(address, 0, data) When I run script, I can see following error: IOError: [Errno 121] Remote I/O error STM32 is configured as I2C slave, both device are connected correctly(SDA, SCL and GND). How do I know that? I have made program using BCM2835 library. C program worked correctly. C program sent buffer without any errors.

Google Assistant on Raspberry Pi 3 Segmentation fault

烈酒焚心 提交于 2019-12-06 09:58:12
问题 I am trying to get google assistant running on Raspberry Pi 3. I am running into an error (env)pi@raspberrypi:~$ googlesamples-assistant-hotword --project-id buddy-fca9f --device-model-id xxxx-xxxxx-xxxx-xxxx. device_model_id: xxxx-xxxx-xxxx-xxxx device_id: DBxxxxxxxxxxxxxxxxxx Segmentation fault I am following https://developers.google.com/assistant/sdk/guides/library/python/embed/run-sample for the setup. I've already registered my device with register tool but its not helping out. On the

Cross-compile multi-arch containers

ぃ、小莉子 提交于 2019-12-06 08:29:21
I'm trying to build an ARM (arm32v7) container, but using an x86_64 host. While I know there are some pretty cool things like Resin using Qemu shenanigans, and Multiarch for doing crossbuilding of generic containers, I have a slight issue: The container I'm trying to build starts off as multiarch, and so Docker always chooses the x86 image in the FROM instruction. I want to build an ARM container from a Multi-arch Rust image on an x86 host. The problem is, I can't find any documentation to explicitly say I want to start with the ARM container and build from that, not the x86 container.

I2C not detecting ? issues in hardware or any other?

こ雲淡風輕ζ 提交于 2019-12-06 08:13:48
问题 I have been working through some i2c examples. Plugging it all together and I find that I need to install the i2c-tools package, then use raspi-config to enable the I2C system. The wiringPi gpio command has a shortcut to the i2cdetect command and running it gives Before 3 weeks everything working properly, detected 68. I didn't understand what is the problem !!! Can anyone one help me to solve this issue. 回答1: The I2C bus allows multiple devices to be connected to your Raspberry Pi, each with