Signal corruption UART native dmx raspian bookworm Pi 2 Model B Rev 1.1

Aperta
#1,988 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
debian, raspberry-pi

Direzione di ricerca

Start with the ola-uartdmx.conf, config.txt, and cmdline.txt settings, then inspect the UART-related log entries from ExtendedSerial.cpp and UartDmxThread.cpp. Reproduce the issue on the Raspberry Pi 2 with Bookworm and compare the configured UART timing with the emitted DMX signal. Done means the lamps receive stable, non-corrupt DMX frames.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi all,
I had a working raspberrypi / ola 10.5 setup thats been running for several years.
However I needed to upgrade to the newest OS (raspian bookworm) and have been unable to get ola to work on this platform.
I've got a https://www.bitwizard.nl/shop/DMX-interface-for-Raspberry-pi bitwizard card.
So I've compiled a 0.10.9 using the process on https://www.lautuscastings.nl/wiki/index.php/Dmx_interface_for_raspberry_pi#bullseye
then I've made sure I've put init_uart_clock=16000000 into the config.txt, theres no bluetooth to disable on this RPI.
my cmdline.txt is just
console=tty1 root=PARTUUID=55a70236-02 rootfstype=ext4 fsck.repair=yes rootwait

my ola-uartdmx.conf is

/dev/ttyAMA0-break = 100
/dev/ttyAMA0-malf = 24000
device = /dev/ttyAMA0
enabled = true

now the symptom is that the log shows its loading and running:

Dec 30 14:38:16 raspberrypi2 olad[703]: olad/PluginManager.cpp:195: Trying to start UART native DMX
Dec 30 14:38:16 raspberrypi2 olad[703]: common/io/ExtendedSerial.cpp:96: Port speeds for 24 are 250000 in and 250000 out
Dec 30 14:38:16 raspberrypi2 olad[703]: common/thread/Thread.cpp:200: Thread , policy SCHED_OTHER, priority 0
Dec 30 14:38:16 raspberrypi2 olad[703]: olad/plugin_api/DeviceManager.cpp:105: Installed device: UART native DMX:20-/dev/ttyAMA0
Dec 30 14:38:16 raspberrypi2 olad[703]: plugins/uartdmx/UartDmxThread.cpp:136: Granularity for UART thread is GOOD
Dec 30 14:38:16 raspberrypi2 olad[703]: olad/plugin_api/PortManager.cpp:119: Patched 20-/dev/ttyAMA0-O-0 to universe 0
Dec 30 14:38:16 raspberrypi2 olad[703]: olad/PluginManager.cpp:200: Started UART native DMX
Dec 30 14:38:16 raspberrypi2 olad[703]: olad/plugin_api/Universe.cpp:286: Added source client, 0x1b87858 to universe 0
Dec 30 14:38:17 raspberrypi2 olad[703]: olad/AvahiDiscoveryAgent.cpp:236: State for OLA Server._http._tcp,_ola, group 0x1bf7e10 changed to AVAHI_ENTRY_GROUP_ESTABLISHED

but the dmx lamps are flickering like they're receiving corrupt or just junk packets of nonsense. But it must be recognisable dmx frames, since they do attempt to display what they're told. I'm feeling like this is symptomatic of a speed mismatch on the uart or something?
At this point I'd appreciate any thoughts or ideas to get this hardware running again.
cheers all,
Rob

Lingua principale
C++
Stelle
773
Fork
233
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenLightingProject/ola

Tutte le issue di OpenLightingProject/ola

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.