Go to advanced search

by edo1
Wed Jan 08, 2020 12:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Inconsistent gpiochipX name
Replies: 2
Views: 217

Re: Inconsistent gpiochipX name

I tested RPi 2b, 3b, 3b+, there could be 1, 2 or 3 gpiochip devices on board. So my HC595 GPIO expander could be detected as gpiochip1, gpiochip2 or gpiochip3 (depending on the RPi model). Now I use this shell script: MYGPIOCHIP=`ls -1r /dev/gpiochip?|head -n1` [ "$MYGPIOCHIP" ] && /usr/bin/gpioset ...
by edo1
Sun Jan 05, 2020 7:25 pm
Forum: Русский
Topic: Sip звонок
Replies: 1
Views: 126

Re: Sip звонок

На спине?
by edo1
Wed Jan 01, 2020 6:44 pm
Forum: General discussion
Topic: Unable to write back to serial console (reading works fine)
Replies: 2
Views: 168

Re: Unable to write back to serial console (reading works fine)

maybe port is used by another application?
try

Code: Select all

lsof /dev/ttyAMA0 /dev/serial0
by edo1
Fri Dec 27, 2019 8:20 pm
Forum: Advanced users
Topic: Any reason to do not use Thumb-2
Replies: 1
Views: 199

Any reason to do not use Thumb-2

My target is RPi2 and later.
Is there any reason (other than support of first generation RPi) to do not use Thumb-2 instruction set?

AFAIK Thumb-2 produces more compact code with near to zero performance loss.
by edo1
Thu Dec 26, 2019 8:39 pm
Forum: Русский
Topic: видео в полноэкранном режиме на 2х мониторах
Replies: 1
Views: 176

Re: видео в полноэкранном режиме на 2х мониторах

2 выхода hdmi есть, так что принципиальных препятствий я не вижу.
by edo1
Tue Dec 24, 2019 6:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Inconsistent gpiochipX name
Replies: 2
Views: 217

Inconsistent gpiochipX name

I use HC595 chip as SPI GPIO expander for a while. I have spidev interface used to manage this chip. Now I'm trying to use kernel GPIO ifrastructure. It works ok, but gpiochip device name differs across RPi models: gpiochip3 on RPi3 and gpiochip3 on RPi3+ # echo `cat /sys/firmware/devicetree/base/mo...
by edo1
Mon Dec 23, 2019 8:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Writing to SST25VF080B
Replies: 4
Views: 222

Re: Writing to SST25VF080B

Could you make a check with another chip?

P.S. write test can be done by simple "echo test > /dev/mtd0; hd /dev/mtd0"
by edo1
Mon Dec 23, 2019 12:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI clock frequency
Replies: 4
Views: 279

Re: SPI clock frequency

You can recompile jedec-spi-nor-overlay.dts
You can compile anyspi-overlay.dts from my patch
You can write your own overlay

Easiest way is get precompiled anyspi.dtbo
by edo1
Mon Dec 23, 2019 12:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Writing to SST25VF080B
Replies: 4
Views: 222

Re: Writing to SST25VF080B

How is "Write Protect Pin (WP#)" connected?
by edo1
Sat Dec 21, 2019 11:58 am
Forum: Troubleshooting
Topic: driver for a device that does not have a driver loaded automatically
Replies: 2
Views: 112

Re: driver for a device that does not have a driver loaded automatically

I just want ANY driver.
It is impossible. Driver can work with supported hardware only.

It is possible to go without kernel driver at all (with libusb), but low-level programming skills are necessary.
by edo1
Sat Dec 21, 2019 2:36 am
Forum: Русский
Topic: Rasberry Pi 4 GPU Память
Replies: 6
Views: 2041

Re: Rasberry Pi 4 GPU Память

XJ7aM wrote:
Wed Sep 25, 2019 6:36 pm
Пытаюсь поставить размер GPU память 1024 мб на Расбиан ос,
но зачем?
by edo1
Sat Dec 21, 2019 2:15 am
Forum: Русский
Topic: Disabling IRQ
Replies: 6
Views: 460

Re: Disabling IRQ

BerZerK wrote:
Tue Dec 10, 2019 9:39 am
Нашел один из вариантов решения проблемы прописать в grub.cfg "noirqdebug", но у меня Raspbian и там нет grub. Как осуществить это действие в Raspbian?
опции ядра лежат в /boot/cmdline.txt
by edo1
Sat Dec 21, 2019 2:12 am
Forum: Русский
Topic: Disabling IRQ
Replies: 6
Views: 460

Re: Disabling IRQ

BerZerK wrote:
Wed Dec 11, 2019 5:40 am
Добавил эти строки и ttyS0 перестал работать, пишет ошибка чтения/записи.
вместо ttyS0 используйте ttyAMA0
by edo1
Sat Dec 21, 2019 2:09 am
Forum: Русский
Topic: Питание через GPIO
Replies: 1
Views: 243

Re: Питание через GPIO

Имеется в виду "еслиу вы подключаете RPi к своей плате через 40-контактный разъём, то вы можете запитать малинку через этот разъём"
by edo1
Fri Dec 20, 2019 11:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI clock frequency
Replies: 4
Views: 279

Re: SPI clock frequency

SPI clock frequency is hardcoded in jedec-spi-nor overlay:
https://github.com/raspberrypi/linux/bl ... verlay.dts

I proposed new overlay with tunable frequency, but it isn't approved yet:
https://github.com/raspberrypi/linux/pull/3374
by edo1
Thu Mar 16, 2017 7:38 pm
Forum: General discussion
Topic: Cheapest power solution
Replies: 30
Views: 5182

Re: Cheapest power solution

You could try the charger from aliexpress, but not sure about the quality.

Beware: a broken power supply can damage Pi!
by edo1
Thu Mar 16, 2017 7:31 pm
Forum: General discussion
Topic: One large 5 volt supply?
Replies: 26
Views: 3962

Re: One large 5 volt supply?

It isn't a good idea to deliver 5V via long cables.
by edo1
Mon Mar 13, 2017 6:37 pm
Forum: Advanced users
Topic: Does anyone use the UART pins and the SPI bus at the same ti
Replies: 2
Views: 708

Re: Does anyone use the UART pins and the SPI bus at the sam

I use both SPI and UART without any issue (and I2C as well)
by edo1
Mon Mar 13, 2017 6:33 pm
Forum: Русский
Topic: Одно реле или один датчик и две малины
Replies: 1
Views: 982

Re: Одно реле или один датчик и две малины

А вот что делать например с реле? Можно ли управлять с двух малин им??? даже если и можно, то не нужно Я понимаю что с датчиком например можно подключить к одной малине, дальше класть данные в базу и отображать от туда на второй. вот и с реле аналогично - на одной малинке управляющая программка, к ...
by edo1
Mon Mar 13, 2017 6:19 pm
Forum: Русский
Topic: При падение напряжения запускать генератор.
Replies: 1
Views: 1018

Re: При падение напряжения запускать генератор.

программы пишутся по-английски, должно быть что-то вроде такого:

Code: Select all

while (infinity_isnt_over) {
    if (voltage_is_falling) {
        start_generator();
    }
}
by edo1
Mon Feb 27, 2017 8:19 am
Forum: Networking and servers
Topic: OpenWRT on Pi3 or Alternative?
Replies: 4
Views: 3943

Re: OpenWRT on Pi3 or Alternative?

You could use LEDE release:
https://downloads.lede-project.org/rele ... 8/bcm2710/
(LEDE is OpenWRT fork and it looks promising)

Or you could use Raspbian or any other linux distributive for pi3.

P.S. not sure about Alfa Network card support in OpenWRT/LEDE
by edo1
Sun Feb 26, 2017 8:10 pm
Forum: Troubleshooting
Topic: OpenVPN performance degrades over time
Replies: 8
Views: 3655

Re: OpenVPN performance degrades over time

Execute some commands on the "broken" system to check what is happening:

Code: Select all

df -h

Code: Select all

w

Code: Select all

ifconfig; sleep 10; ifconfig

Code: Select all

wget --output-document=/dev/null https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.10.tar.xz

Code: Select all

dmesg | tail -n 30
Publish the output here if you don't know how to interpret it.
by edo1
Tue Aug 02, 2016 11:26 am
Forum: Русский
Topic: Можна ли использовать GPIO когда Raspberry включен
Replies: 5
Views: 2477

Re: Можна ли использовать GPIO когда Raspberry включен

никакой защиты на gpio нет, это выводы процессора, так что пожечь его статикой или неправильным напряжением легко.
by edo1
Mon Aug 01, 2016 9:16 pm
Forum: Beginners
Topic: Air Pressure comtroller
Replies: 5
Views: 2143

Re: Air Pressure comtroller

There is low-cost ABP series from Honeywell, we use ABPLANT005PG2A3 sensor: http://www.tme.eu/en/details/abplant005pg2a3/pressure-sensors/honeywell/ It works great and it is priced reasonably. If you want cheaper solution you can look at Bosch BMP085/180/280. But they are absolute pressure sensors, ...
by edo1
Mon Aug 01, 2016 9:00 pm
Forum: Troubleshooting
Topic: Unable to bring CAN interface up on RPi 3 [solved]
Replies: 7
Views: 10330

Re: Unable to bring CAN interface up on RPi 3

With proper wiring and DT overlay can0 should appear automatically.
IMHO your problem is in wiring.

In kernel version 4.8 mcp251x driver will be more talkative, it should help to debug such cases.

Go to advanced search