Страница 1 из 1
Raspberry Pi в проекте
Добавлено: 14 июл 2019, 23:01
Olej
Продолжаем...
(тему которая была
Raspberry Pi & Orange Pi)
Объявился конкретный заказчик:
- работа (управление) со спец. микроконтроллером "вниз" по Modbus RTU;
- работа с пром. сенсорным экраном ... примерно таким
Сенсорное стекло LED «i-Touch» 3мм 19” 4:3 в рамке;
- sensornaya-panel-led-ir-i-touch-19-uproshchennaya-3593356_big.jpg (21.75 КБ) 2426 просмотров
- работа с мнемосхемой на экране этого монитора как WEB-приложение в браузере (предложение заказчика) ... взаимодействие с бэкэндом через WinSocket;
- сервер WinSocket реализуем на Rapsberry Pi на Python 3.
Rapsberry Pi в этой задаче (этого заказчика) не годится - это игрушка, и его производительности не хватает в разы (там ещё стоит задача захват и передача в сеть видеопотоков от 2-х WEB камер + аудиопотока). Позже всё это железо будет заменено на
x86 (откуда и возникла эта тема). Raspberry Pi, имеющийся в наличии у заказчика, это только временная отладочная макетная площадка... чем и любопытна для меня поработать.
P.S. И вообще смешно было бы выглядело использование сенсорного монитора стоимостью $160 с процессорной платой стоимостью $35
Re: Raspberry Pi в проекте
Добавлено: 14 июл 2019, 23:43
Olej
Код: Выделить всё
olej@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
Код: Выделить всё
olej@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux
Код: Выделить всё
olej@raspberrypi:~ $ sudo raspi-config
[sudo] пароль для olej:
...
Число пакетов установленных в системе:
Код: Выделить всё
olej@raspberrypi:~ $ dpkg --get-selections | wc -l
1564
Re: Raspberry Pi в проекте
Добавлено: 19 июл 2019, 17:54
Olej
Olej писал(а):
- сервер WinSocket реализуем на Raspberry Pi на Python 3.
Организовал удалённое подключение по SSH (откуда и возникла тема
доступ к хосту снаружи про проброс портов и белые IP):
Код: Выделить всё
olej@ACER:~$ ssh -Y olej@46.172.92.145
olej@46.172.92.145's password:
Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jul 16 20:18:02 2019 from 193.28.177.125
Разрешение монитора, которое по умолчанию устанавливается в Raspbian:
Код: Выделить всё
olej@raspberrypi:~ $ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
1920x1080 60.00*+
1280x1024 75.02 60.02
1280x960 60.00
1280x800 59.91
1152x864 75.00
1280x720 60.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
1920x1080
Re: Raspberry Pi в проекте
Добавлено: 19 июл 2019, 18:31
Olej
Сенсорный экран, подключен разъёмом VGA (DB-25) видео + USB чувствительный сенсор - оказался отличной штукой для работы с мнемосхемами, ... но для тестово-отладочных работ к этому кину нужно подключать клавиатуру + мышку:
Код: Выделить всё
olej@raspberrypi:~ $ lsusb
Bus 001 Device 006: ID 0b1e:000f Electronic Warfare Assoc., Inc. (EWA)
Bus 001 Device 005: ID 09da:000a A4Tech Co., Ltd. Optical Mouse Opto 510D / OP-620D
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Код: Выделить всё
olej@raspberrypi:~ $ sudo lsusb -s 001:006 -v
[sudo] пароль для olej:
Bus 001 Device 006: ID 0b1e:000f Electronic Warfare Assoc., Inc. (EWA)
Device Descriptor:
...
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
...
Re: Raspberry Pi в проекте
Добавлено: 19 июл 2019, 18:43
Olej
Olej писал(а):
Организовал удалённое подключение по SSH (откуда и возникла тема
доступ к хосту снаружи про проброс портов и белые IP):
Код: Выделить всё
olej@ACER:~$ ssh -Y olej@46.172.92.145
olej@46.172.92.145's password:
Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jul 16 20:18:02 2019 from 193.28.177.125
Их (Raspbian) браузер Epiphany :
Код: Выделить всё
olej@raspberrypi:~ $ which epiphany
/usr/bin/epiphany
Его удалённое выполнение через SSH туннель:
Код: Выделить всё
olej@raspberrypi:~ $ epiphany &
[1] 28116
olej@raspberrypi:~ $
(epiphany-browser:28116): Gtk-WARNING **: Theme parsing error: <data>:8:29: The style property GtkButton:default-border is deprecated and shouldn't be used anymore. It will be removed in a future version
(epiphany-browser:28116): Gtk-WARNING **: Theme parsing error: <data>:9:37: The style property GtkButton:default-outside-border is deprecated and shouldn't be used anymore. It will be removed in a future version
(epiphany-browser:28116): Gtk-WARNING **: Theme parsing error: <data>:10:27: The style property GtkButton:inner-border is deprecated and shouldn't be used anymore. It will be removed in a future version
(epiphany-browser:28116): Gtk-WARNING **: Theme parsing error: <data>:11:28: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version
(epiphany-browser:28116): Gtk-WARNING **: Theme parsing error: <data>:12:31: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version
** Message: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files
** (epiphany-browser:28116): WARNING **: Error caching form data: The name org.freedesktop.secrets was not provided by any .service files
Учитывая, что а). это Raspberry Pi с ARM процессором на 900Mhz и б). находится он удалённо километрах на 40-50 ... - очень даже неплохо, быстренько ... вполне пригодно для удалённой
отладки управляющей мнемосхемы.