OpenLightingProject / ola

The Open Lighting Architecture - The Travel Adaptor for the Lighting Industry
https://www.openlighting.org/ola/
Other
643 stars 205 forks source link

FT232R USB UART (Eurolite DMX512-Pro) wont send any data. #1675

Open Gandalf1783 opened 3 years ago

Gandalf1783 commented 3 years ago

I have been trying to use the Eurolite for a few weeks now, but no data is getting out of the device.

Ola-Log:

Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started Pathport Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start E1.31 (sACN) Oct 26 22:25:25 raspberrypi olad[1786]: olad/plugin_api/DeviceManager.cpp:105: Installed device: E1.31 (DMX over ACN) [192.168.178.73]:11-1 Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started E1.31 (sACN) Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start USB Oct 26 22:25:25 raspberrypi olad[1786]: libs/usb/HotplugAgent.cpp:172: USB hotplug event: 2:1 @0x10e2080 [add] Oct 26 22:25:25 raspberrypi olad[1786]: libs/usb/LibUsbThread.cpp:50: -- Starting libusb thread Oct 26 22:25:25 raspberrypi olad[1786]: common/thread/Thread.cpp:200: Thread , policy SCHED_OTHER, priority 0 Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started USB Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start FTDI USB DMX Oct 26 22:25:25 raspberrypi olad[1786]: libs/usb/LibUsbThread.cpp:35: ----libusb event thread is running Oct 26 22:25:25 raspberrypi olad[1786]: plugins/ftdidmx/FtdiWidget.cpp:133: Found 0 FTDI devices with PID: 24577. Oct 26 22:25:25 raspberrypi olad[1786]: plugins/ftdidmx/FtdiWidget.cpp:133: Found 0 FTDI devices with PID: 24593. Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started FTDI USB DMX Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start OSC Oct 26 22:25:25 raspberrypi olad[1786]: plugins/osc/OSCDevice.cpp:88: No targets specified for OSC Output port 0 Oct 26 22:25:25 raspberrypi olad[1786]: plugins/osc/OSCDevice.cpp:88: No targets specified for OSC Output port 1 Oct 26 22:25:25 raspberrypi olad[1786]: plugins/osc/OSCDevice.cpp:88: No targets specified for OSC Output port 2 Oct 26 22:25:25 raspberrypi olad[1786]: plugins/osc/OSCDevice.cpp:88: No targets specified for OSC Output port 3 Oct 26 22:25:25 raspberrypi olad[1786]: plugins/osc/OSCDevice.cpp:88: No targets specified for OSC Output port 4 Oct 26 22:25:25 raspberrypi olad[1786]: olad/plugin_api/DeviceManager.cpp:105: Installed device: OSC Device:14-1 Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started OSC Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start SPI Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started SPI Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start KiNET Oct 26 22:25:25 raspberrypi olad[1786]: olad/plugin_api/DeviceManager.cpp:105: Installed device: KiNet Device:16-1 Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started KiNET Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start KarateLight Oct 26 22:25:25 raspberrypi olad[1786]: common/io/IOUtils.cpp:39: open(/dev/kldmx0): No such file or directory Oct 26 22:25:25 raspberrypi olad[1786]: plugins/karate/KaratePlugin.cpp:79: Could not open /dev/kldmx0 No such file or directory Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started KarateLight Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start Milford Instruments Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started Milford Instruments Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start Renard Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started Renard Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start UART native DMX Oct 26 22:25:25 raspberrypi olad[1786]: common/io/IOUtils.cpp:39: open(/dev/ttyACM0): No such file or directory Oct 26 22:25:25 raspberrypi olad[1786]: plugins/uartdmx/UartDmxPlugin.cpp:70: Could not open /dev/ttyACM0 No such file or directory Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started UART native DMX Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start Open Pixel Control Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started Open Pixel Control Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:195: Trying to start GPIO Oct 26 22:25:25 raspberrypi olad[1786]: olad/PluginManager.cpp:200: Started GPIO Oct 26 22:25:26 raspberrypi olad[1786]: olad/AvahiDiscoveryAgent.cpp:236: State for OLA Server._http._tcp,_ola, group 0x110e760 changed to AVAHI_ENTRY_GROUP_ESTABLISHED Oct 26 22:25:27 raspberrypi sudo[1798]: root : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/sbin/service olad status Oct 26 22:25:27 raspberrypi sudo[1798]: pam_unix(sudo:session): session opened for user root by pi(uid=0) Oct 26 22:25:27 raspberrypi sudo[1798]: pam_unix(sudo:session): session closed for user root Oct 26 22:25:30 raspberrypi olad[1786]: common/io/Serial.cpp:151: Device /dev/ttyUSB0 doesn't exist, so there's no point trying to acquire a lock Oct 26 22:25:30 raspberrypi sudo[1811]: root : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/sbin/service olad status Oct 26 22:25:30 raspberrypi sudo[1811]: pam_unix(sudo:session): session opened for user root by pi(uid=0) Oct 26 22:25:30 raspberrypi sudo[1811]: pam_unix(sudo:session): session closed for user root Oct 26 22:25:35 raspberrypi olad[1786]: common/io/Serial.cpp:151: Device /dev/ttyUSB0 doesn't exist, so there's no point trying to acquire a lock Oct 26 22:25:40 raspberrypi olad[1786]: common/io/Serial.cpp:151: Device /dev/ttyUSB0 doesn't exist, so there's no point trying to acquire a lock Oct 26 22:25:45 raspberrypi olad[1786]: common/io/Serial.cpp:151: Device /dev/ttyUSB0 doesn't exist, so there's no point trying to acquire a lock Oct 26 22:25:50 raspberrypi olad[1786]: common/io/Serial.cpp:151: Device /dev/ttyUSB0 doesn't exist, so there's no point trying to acquire a lock Oct 26 22:25:55 raspberrypi olad[1786]: common/io/Serial.cpp:151: Device /dev/ttyUSB0 doesn't exist, so there's no point trying to acquire a lock

As soon as i attach the device, it does this:

Oct 26 22:26:38 raspberrypi kernel: usb 1-1.1: new full-speed USB device number 7 using xhci_hcd Oct 26 22:26:38 raspberrypi kernel: usb 1-1.1: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 6.00 Oct 26 22:26:38 raspberrypi kernel: usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Oct 26 22:26:38 raspberrypi kernel: usb 1-1.1: Product: FT232R USB UART Oct 26 22:26:38 raspberrypi kernel: usb 1-1.1: Manufacturer: FTDI Oct 26 22:26:38 raspberrypi kernel: usb 1-1.1: SerialNumber: AK069Q8Q Oct 26 22:26:38 raspberrypi kernel: ftdi_sio 1-1.1:1.0: FTDI USB Serial Device converter detected Oct 26 22:26:38 raspberrypi kernel: usb 1-1.1: Detected FT232RL Oct 26 22:26:38 raspberrypi kernel: usb 1-1.1: FTDI USB Serial Device converter now attached to ttyUSB0 Oct 26 22:26:38 raspberrypi mtp-probe[1829]: checking bus 1, device 7: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1" Oct 26 22:26:38 raspberrypi mtp-probe[1829]: bus: 1, device: 7 was not an MTP device Oct 26 22:26:38 raspberrypi olad[1786]: libs/usb/HotplugAgent.cpp:172: USB hotplug event: 1:7 @0xb1701728 [add] Oct 26 22:26:38 raspberrypi mtp-probe[1832]: checking bus 1, device 7: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1" Oct 26 22:26:38 raspberrypi mtp-probe[1832]: bus: 1, device: 7 was not an MTP device Oct 26 22:26:40 raspberrypi olad[1786]: common/io/Serial.cpp:199: Acquired /var/lock/LCK..ttyUSB0 Oct 26 22:26:40 raspberrypi olad[1786]: plugins/stageprofi/StageProfiPlugin.cpp:121: New StageProfiWidget: /dev/ttyUSB0 Oct 26 22:26:40 raspberrypi olad[1786]: olad/plugin_api/DeviceManager.cpp:105: Installed device: StageProfi Device:8-/dev/ttyUSB0 Oct 26 22:26:41 raspberrypi olad[1786]: plugins/stageprofi/StageProfiWidget.cpp:125: No response from StageProfiWidget Oct 26 22:26:41 raspberrypi olad[1786]: plugins/stageprofi/StageProfiPlugin.cpp:147: StageProfi device /dev/ttyUSB0 was removed Oct 26 22:26:41 raspberrypi olad[1786]: common/io/Serial.cpp:247: Released /var/lock/LCK..ttyUSB0 Oct 26 22:26:45 raspberrypi olad[1786]: common/io/Serial.cpp:199: Acquired /var/lock/LCK..ttyUSB0 Oct 26 22:26:45 raspberrypi olad[1786]: plugins/stageprofi/StageProfiPlugin.cpp:121: New StageProfiWidget: /dev/ttyUSB0 Oct 26 22:26:45 raspberrypi olad[1786]: olad/plugin_api/DeviceManager.cpp:105: Installed device: StageProfi Device:8-/dev/ttyUSB0

And if i try it to use it in the webpanel:

Oct 26 22:31:30 raspberrypi olad[561]: olad/plugin_api/PortManager.cpp:119: Patched 13-AK069Q8Q-O-1 to universe 0 Oct 26 22:31:33 raspberrypi olad[561]: common/io/Serial.cpp:151: Device /dev/ttyUSB0 doesn't exist, so there's no point trying to acquire a lock

BUT, as soon as i remove it:

Oct 26 22:32:08 raspberrypi olad[561]: common/io/Serial.cpp:151: Device /dev/ttyUSB0 doesn't exist, so there's no point trying to acquire a lock Oct 26 22:32:13 raspberrypi olad[561]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q Setting new line property failed Oct 26 22:32:13 raspberrypi olad[561]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q Setting new line property failed Oct 26 22:32:13 raspberrypi olad[561]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q Setting new line property failed Oct 26 22:32:13 raspberrypi olad[561]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q Setting new line property failed Oct 26 22:32:13 raspberrypi olad[561]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q Setting new line property failed Oct 26 22:32:13 raspberrypi olad[561]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q Setting new line property failed Oct 26 22:32:13 raspberrypi olad[561]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q Setting new line property failed Oct 26 22:32:13 raspberrypi olad[561]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q Setting new line property failed Oct 26 22:32:13 raspberrypi kernel: usb 1-1.1: USB disconnect, device number 3

And this does repeat infinitely, until i restart the service.

Oct 26 22:32:13 raspberrypi olad[561]: libs/usb/HotplugAgent.cpp:172: USB hotplug event: 1:3 @0x1dba220 [del]

Gandalf1783 commented 3 years ago

I probably should add that im using a RPi4, and this should be ola 0.10.7 via apt-get. I also do have a udev-rule:

SUBSYSTEM=="usb|usb_device", ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="plugdev" And i did add the user pihole to the group plugdev.

peternewman commented 3 years ago

Can you disable the StageProfi plugin please and then try again.

If that doesn't work can you share your olad -l 4 logs please: https://www.openlighting.org/ola/get-help/ola-faq/#How_do_I_get_olad_-l_4_logs

Gandalf1783 commented 3 years ago

I am actually now getting a new error:

Mar 17 16:30:06 raspberrypi olad[595]: common/io/Serial.cpp:151: Device /dev/ttyUSB0 doesn't exist, so there's no point trying to acquire a lock

DMESG:

[  155.540126] usb 1-1.3: new full-speed USB device number 4 using xhci_hcd
[  155.686368] usb 1-1.3: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 6.00
[  155.686390] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  155.686409] usb 1-1.3: Product: FT232R USB UART
[  155.686426] usb 1-1.3: Manufacturer: FTDI
[  155.686443] usb 1-1.3: SerialNumber: AK069Q8Q
[  155.693093] ftdi_sio 1-1.3:1.0: FTDI USB Serial Device converter detected
[  155.693270] usb 1-1.3: Detected FT232RL
[  155.697409] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0

Ola:

Mar 17 16:32:36 raspberrypi olad[595]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q  Setting new line property failed
Mar 17 16:32:36 raspberrypi olad[595]: libs/usb/HotplugAgent.cpp:172: USB hotplug event: 1:5 @0xb1902118 [add]
Mar 17 16:32:36 raspberrypi olad[595]: plugins/ftdidmx/FtdiWidget.cpp:343: FT232R USB UART with serial number : AK069Q8Q  Setting new line property failed

Ola with -l4: https://hatebin.com/vrwdmnowug

I disconnected it after a few secons and playing around with fades, however, then it started displaying the "Setting new line property failed" error again.

I guess that since its a serial device, it was not able to send the command / data (sometimes indicated by a newline or \n). Anyways, i still cant get any data out of it, even when plugged in by the beginning when i started the software (No green led flashing).