FATTOMCAT Geschrieben March 27, 2023 at 15:25 Share Geschrieben March 27, 2023 at 15:25 Hallo, Ich habe einen Rock Pi 4 als ersatz für den Rapberry Pi gekauft. Out of the box funktioniert der HAT nicht. Gibt es eine Möglichkeit das zu ändern? Wenn ich den bickd starte erhalte ich diesen output: 2023-03-27 15:21:03.317550 <E> <bricklet_stack_linux_spidev.c:117> Could not configure SPI mode: EINVAL (22) [timestamp] [threadID] facility level [function call] <message> -------------------------------------------------------------------------------- [ 0.000015] [00000640] libusb: debug [libusb_init] created default context [ 0.000200] [00000640] libusb: debug [libusb_init] libusb v1.0.21.11156 [ 0.000370] [00000640] libusb: debug [find_usbfs_path] found usbfs at /dev/bus/usb [ 0.000464] [00000640] libusb: debug [op_init] bulk continuation flag supported [ 0.000524] [00000640] libusb: debug [op_init] zero length packet flag supported [ 0.000635] [00000640] libusb: debug [op_init] sysfs can relate devices [ 0.000687] [00000640] libusb: debug [op_init] sysfs has complete descriptors 2023-03-27 15:21:03.298263 <I> <main_linux.c:369> Brick Daemon 2.4.4 started (pid: 1600, daemonized: 0) 2023-03-27 15:21:03.298329 <I> <main_linux.c:375> Running on Linux system (sysname: Linux, release: 4.4.154-90-rockchip-ga14f6502e045, version: #22 SMP Tue Jul 30 10:32:28 UTC 2019, machine: aarch64) 2023-03-27 15:21:03.298350 <D> <main_linux.c:384> Using config file: /etc/brickd.conf [ 0.003458] [00000642] libusb: debug [linux_udev_event_thread_main] udev event thread entering. 2023-03-27 15:21:03.298357 <D> <main_linux.c:390> Using PID file: /var/run/brickd.pid 2023-03-27 15:21:03.298362 <W> <main_linux.c:394> Warning(s) in config file '/etc/brickd.conf', run with --check-config option for details 2023-03-27 15:21:03.298370 <D> <event.c:60> Initializing event subsystem 2023-03-27 15:21:03.298471 <D> <event|event.c:270> Added generic event source (handle: 5, name: event-stop, events: 0x0001) at index 0 2023-03-27 15:21:03.298518 <D> <event|event.c:270> Added generic event source (handle: 7, name: signal, events: 0x0001) at index 1 2023-03-27 15:21:03.298552 <D> <hardware.c:39> Initializing hardware subsystem 2023-03-27 15:21:03.298562 <D> <usb.c:296> Initializing USB subsystem 2023-03-27 15:21:03.298595 <D> <event|event.c:270> Added generic event source (handle: 9, name: usb-hotplug, events: 0x0001) at index 2 [ 0.011232] [00000640] libusb: debug [linux_get_device_address] getting address for device: usb1 detached: 0 [ 0.011294] [00000640] libusb: debug [linux_get_device_address] scan usb1 [ 0.011554] [00000640] libusb: debug [linux_get_device_address] bus=1 dev=1 [ 0.011596] [00000640] libusb: debug [linux_enumerate_device] busnum 1 devaddr 1 session_id 257 [ 0.011622] [00000640] libusb: debug [linux_enumerate_device] allocating new device for 1/1 (session 257) [ 0.012189] [00000640] libusb: debug [linux_get_device_address] getting address for device: usb3 detached: 0 [ 0.012233] [00000640] libusb: debug [linux_get_device_address] scan usb3 [ 0.012436] [00000640] libusb: debug [linux_get_device_address] bus=3 dev=1 [ 0.012474] [00000640] libusb: debug [linux_enumerate_device] busnum 3 devaddr 1 session_id 769 [ 0.012498] [00000640] libusb: debug [linux_enumerate_device] allocating new device for 3/1 (session 769) [ 0.013000] [00000640] libusb: debug [linux_get_device_address] getting address for device: usb2 detached: 0 [ 0.013042] [00000640] libusb: debug [linux_get_device_address] scan usb2 [ 0.013252] [00000640] libusb: debug [linux_get_device_address] bus=2 dev=1 [ 0.013339] [00000640] libusb: debug [linux_enumerate_device] busnum 2 devaddr 1 session_id 513 [ 0.013363] [00000640] libusb: debug [linux_enumerate_device] allocating new device for 2/1 (session 513) [ 0.013856] [00000640] libusb: debug [linux_get_device_address] getting address for device: usb4 detached: 0 [ 0.013934] [00000640] libusb: debug [linux_get_device_address] scan usb4 [ 0.014133] [00000640] libusb: debug [linux_get_device_address] bus=4 dev=1 [ 0.014204] [00000640] libusb: debug [linux_enumerate_device] busnum 4 devaddr 1 session_id 1025 [ 0.014227] [00000640] libusb: debug [linux_enumerate_device] allocating new device for 4/1 (session 1025) [ 0.014761] [00000640] libusb: debug [linux_get_device_address] getting address for device: usb5 detached: 0 [ 0.014835] [00000640] libusb: debug [linux_get_device_address] scan usb5 [ 0.015044] [00000640] libusb: debug [linux_get_device_address] bus=5 dev=1 [ 0.015155] [00000640] libusb: debug [linux_enumerate_device] busnum 5 devaddr 1 session_id 1281 [ 0.015182] [00000640] libusb: debug [linux_enumerate_device] allocating new device for 5/1 (session 1281) [ 0.015764] [00000640] libusb: debug [linux_get_device_address] getting address for device: usb6 detached: 0 [ 0.015828] [00000640] libusb: debug [linux_get_device_address] scan usb6 [ 0.016034] [00000640] libusb: debug [linux_get_device_address] bus=6 dev=1 [ 0.016107] [00000640] libusb: debug [linux_enumerate_device] busnum 6 devaddr 1 session_id 1537 [ 0.016167] [00000640] libusb: debug [linux_enumerate_device] allocating new device for 6/1 (session 1537) [ 0.016449] [00000640] libusb: debug [usbi_add_pollfd] add fd 14 events 1 [ 0.016556] [00000640] libusb: debug [usbi_io_init] using timerfd for timeouts [ 0.016581] [00000640] libusb: debug [usbi_add_pollfd] add fd 16 events 1 [ 0.016807] [00000640] libusb: debug [libusb_get_device_list] [ 0.016915] [00000640] libusb: debug [libusb_get_device_descriptor] [ 0.017001] [00000640] libusb: debug [libusb_get_device_descriptor] [ 0.017077] [00000640] libusb: debug [libusb_get_device_descriptor] [ 0.017118] [00000640] libusb: debug [libusb_get_device_descriptor] [ 0.017162] [00000640] libusb: debug [libusb_get_device_descriptor] [ 0.017204] [00000640] libusb: debug [libusb_get_device_descriptor] 2023-03-27 15:21:03.315366 <D> <event|event.c:270> Added USB event source (handle: 14, name: usb-poll, events: 0x0001) at index 3 2023-03-27 15:21:03.315431 <D> <event|event.c:270> Added USB event source (handle: 16, name: usb-poll, events: 0x0001) at index 4 2023-03-27 15:21:03.315455 <D> <usb.c:413> Starting initial USB device scan 2023-03-27 15:21:03.315460 <D> <usb.c:492> Looking for added/removed USB devices 2023-03-27 15:21:03.315562 <D> <usb.c:186> Found 6 USB device(s) 2023-03-27 15:21:03.315917 <D> <network.c:177> Initializing network subsystem 2023-03-27 15:21:03.315946 <D> <socket.c:164> Opening server socket(s) for address '0.0.0.0' on port 4223 2023-03-27 15:21:03.316115 <D> <socket.c:264> Started listening to '0.0.0.0' (IPv4) resolved from '0.0.0.0' on port 4223 2023-03-27 15:21:03.316141 <D> <event|event.c:270> Added generic event source (handle: 17, name: server, events: 0x0001) at index 5 2023-03-27 15:21:03.316155 <D> <mesh.c:53> Initializing mesh subsystem 2023-03-27 15:21:03.316164 <D> <mesh.c:156> Mesh gateway is enabled 2023-03-27 15:21:03.316168 <D> <socket.c:164> Opening server socket(s) for address '0.0.0.0' on port 4240 2023-03-27 15:21:03.316221 <D> <socket.c:264> Started listening to '0.0.0.0' (IPv4) resolved from '0.0.0.0' on port 4240 2023-03-27 15:21:03.316237 <D> <event|event.c:270> Added generic event source (handle: 18, name: mesh-server, events: 0x0001) at index 6 2023-03-27 15:21:03.316331 <D> <bricklet.c:260> No HAT product_id file in device tree, not using default HAT Brick config 2023-03-27 15:21:03.316382 <D> <bricklet.c:260> No HAT product_id file in device tree, not using default HAT Zero Brick config 2023-03-27 15:21:03.316430 <D> <bricklet.c:260> No HAT product_id file in device tree, not using default HAT WARP Energy Manager Brick config 2023-03-27 15:21:03.316436 <D> <bricklet.c:465> Found no supported HAT product_id in device tree, checking bricklet.* section in config file instead 2023-03-27 15:21:03.316469 <I> <bricklet.c:521> Using bricklet.* section in config file 2023-03-27 15:21:03.316473 <I> <bricklet.c:530> Found Bricklet port A (spidev: /dev/spidev32766.0, driver: gpio, name: gpio23, num: 23) 2023-03-27 15:21:03.316484 <D> <bricklet_stack.c:806> Initializing Bricklet stack subsystem for port A 2023-03-27 15:21:03.316538 <D> <event|event.c:270> Added generic event source (handle: 19, name: bricklet-stack-notification, events: 0x0001) at index 7 2023-03-27 15:21:03.316640 <I> <bricklet_stack_linux.c:132> Using spidev backend for Bricklets (no 'Raspberry Pi' prefix in /proc/device-tree/model) 2023-03-27 15:21:03.317550 <E> <bricklet_stack_linux_spidev.c:117> Could not configure SPI mode: EINVAL (22) 2023-03-27 15:21:03.317623 <D> <event|event.c:408> Marked generic event source (handle: 19, name: bricklet-stack-notification, events: 0x0001) as removed at index 7 2023-03-27 15:21:03.317649 <D> <mesh.c:74> Shutting down mesh subsystem 2023-03-27 15:21:03.317660 <D> <event|event.c:408> Marked generic event source (handle: 18, name: mesh-server, events: 0x0001) as removed at index 6 2023-03-27 15:21:03.317715 <D> <network.c:275> Shutting down network subsystem 2023-03-27 15:21:03.317728 <D> <event|event.c:408> Marked generic event source (handle: 17, name: server, events: 0x0001) as removed at index 5 2023-03-27 15:21:03.317877 <D> <usb.c:451> Shutting down USB subsystem 2023-03-27 15:21:03.317896 <D> <event|event.c:408> Marked USB event source (handle: 14, name: usb-poll, events: 0x0001) as removed at index 3 2023-03-27 15:21:03.317912 <D> <event|event.c:408> Marked USB event source (handle: 16, name: usb-poll, events: 0x0001) as removed at index 4 [ 0.019270] [00000640] libusb: debug [libusb_exit] [ 0.020781] [00000640] libusb: debug [libusb_exit] destroying default context [ 0.020844] [00000640] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.020869] [00000640] libusb: debug [handle_events] poll fds modified, reallocating [ 0.020904] [00000640] libusb: debug [handle_events] poll() 2 fds with timeout in 0ms [ 0.021059] [00000640] libusb: debug [handle_events] poll() returned 1 [ 0.021073] [00000640] libusb: debug [handle_events] caught a fish on the event pipe [ 0.021086] [00000640] libusb: debug [handle_events] hotplug message received [ 0.021100] [00000640] libusb: debug [handle_events] poll() 2 fds with timeout in 0ms [ 0.021113] [00000640] libusb: debug [handle_events] poll() returned 1 [ 0.021124] [00000640] libusb: debug [handle_events] caught a fish on the event pipe [ 0.021166] [00000640] libusb: debug [handle_events] hotplug message received [ 0.021194] [00000640] libusb: debug [handle_events] poll() 2 fds with timeout in 0ms [ 0.021209] [00000640] libusb: debug [handle_events] poll() returned 0 [ 0.021232] [00000640] libusb: debug [libusb_unref_device] destroy device 6.1 [ 0.021252] [00000640] libusb: debug [libusb_unref_device] destroy device 5.1 [ 0.021267] [00000640] libusb: debug [libusb_unref_device] destroy device 4.1 [ 0.021307] [00000640] libusb: debug [libusb_unref_device] destroy device 2.1 [ 0.021321] [00000640] libusb: debug [libusb_unref_device] destroy device 3.1 [ 0.021335] [00000640] libusb: debug [libusb_unref_device] destroy device 1.1 [ 0.021351] [00000640] libusb: debug [usbi_remove_pollfd] remove fd 14 [ 0.021405] [00000640] libusb: debug [usbi_remove_pollfd] remove fd 16 [ 0.021527] [00000642] libusb: debug [linux_udev_event_thread_main] udev event thread exiting 2023-03-27 15:21:03.320498 <D> <event|event.c:408> Marked generic event source (handle: 9, name: usb-hotplug, events: 0x0001) as removed at index 2 2023-03-27 15:21:03.320547 <D> <hardware.c:53> Shutting down hardware subsystem 2023-03-27 15:21:03.320565 <D> <event|event.c:408> Marked generic event source (handle: 7, name: signal, events: 0x0001) as removed at index 1 2023-03-27 15:21:03.320586 <D> <event.c:124> Shutting down event subsystem 2023-03-27 15:21:03.320592 <D> <event|event.c:408> Marked generic event source (handle: 5, name: event-stop, events: 0x0001) as removed at index 0 2023-03-27 15:21:03.320618 <D> <event|event.c:427> Removed generic event source (handle: 19, name: bricklet-stack-notification, events: 0x0001) at index 7 2023-03-27 15:21:03.320624 <D> <event|event.c:427> Removed generic event source (handle: 18, name: mesh-server, events: 0x0001) at index 6 2023-03-27 15:21:03.320651 <D> <event|event.c:427> Removed generic event source (handle: 17, name: server, events: 0x0001) at index 5 2023-03-27 15:21:03.320656 <D> <event|event.c:427> Removed USB event source (handle: 16, name: usb-poll, events: 0x0001) at index 4 2023-03-27 15:21:03.320662 <D> <event|event.c:427> Removed USB event source (handle: 14, name: usb-poll, events: 0x0001) at index 3 2023-03-27 15:21:03.320666 <D> <event|event.c:427> Removed generic event source (handle: 9, name: usb-hotplug, events: 0x0001) at index 2 2023-03-27 15:21:03.320670 <D> <event|event.c:427> Removed generic event source (handle: 7, name: signal, events: 0x0001) at index 1 2023-03-27 15:21:03.320674 <D> <event|event.c:427> Removed generic event source (handle: 5, name: event-stop, events: 0x0001) at index 0 2023-03-27 15:21:03.320680 <I> <main_linux.c:559> Brick Daemon 2.4.4 stopped Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
photron Geschrieben March 29, 2023 at 13:02 Share Geschrieben March 29, 2023 at 13:02 Der Linux Kernel mag nicht wie wir das spidev konfigurieren wollen. Was hast du genau in die /etc/brickd.conf Datei geschrieben? Die 32766 wundert mich etwas. 2023-03-27 15:21:03.316473 <I> <bricklet.c:530> Found Bricklet port A (spidev: /dev/spidev32766.0, driver: gpio, name: gpio23, num: 23) Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
FATTOMCAT Geschrieben March 31, 2023 at 19:48 Autor Share Geschrieben March 31, 2023 at 19:48 (bearbeitet) Ich habe SPI über die "/boot/hw_initfc.config" eingeschalten: # Hardware Interface Config # For more details, check https://wiki.radxa.com/Rockpi4/hardware/devtree_overlays. # Set "on" to enable the optional hardware interfaces while set "off" to disable. intfc:pwm0=off intfc:pwm1=off intfc:uart2=off intfc:uart4=off intfc:spi1=on intfc:spi2=off intfc:i2c2=off intfc:i2c6=off intfc:i2c7=off # Devicetree Overlay Enable, uncomment to enable .dtbo under /boot/overlays/. # EEPROM on I2C2 #intfc:dtoverlay=at24c02 # Serial console on UART2 intfc:dtoverlay=console-on-ttyS2 # Serial console on UART4 #intfc:dtoverlay=console-on-ttyS4 # Dummy spi device on SPI1 for test. Need set: intfc:spi1=on intfc:dtoverlay=devspi1 darufhin wurde auch ein spi device erstellt: root@linaro-alip:/# ls /dev/sp* /dev/spidev32766.0 Mitlerweile erhalte ich auch nichtmehr den spi Fehler... Meiner brickd.conf habe ich diese Zeilen angehängt: log.level = Debug log.debug_filter = bricklet.group0.spidev = /dev/spidev32766.0 bricklet.group0.cs0.driver = gpio bricklet.group0.cs0.name = gpio154 #4_D2 #P16 ### 154 bricklet.group0.cs0.num = 154 bricklet.group0.cs1.driver = gpio bricklet.group0.cs1.name = gpio149 #4_C5 #P15 ### 149 bricklet.group0.cs1.num = 149 bricklet.group0.cs2.driver = gpio bricklet.group0.cs2.name = gpio157 #4_D5 #P22 ### 157 bricklet.group0.cs2.num = 157 bricklet.group0.cs3.driver = gpio bricklet.group0.cs3.name = gpio158 #4_D6 #P37 ### 158 bricklet.group0.cs3.num = 158 bricklet.group0.cs4.driver = gpio bricklet.group0.cs4.name = gpio150 #4_C6 #P13 ### 150 bricklet.group0.cs4.num = 150 bricklet.group0.cs5.driver = gpio bricklet.group0.cs5.name = gpio156 #4_D4 #P18 ### 156 bricklet.group0.cs5.num = 156 ###these seem to bee fallback pins bricklet.group0.cs6.driver = gpio bricklet.group0.cs6.name = gpio7 ##P26 #ADC_IN0!?! #has no GPIO ?!?? bricklet.group0.cs6.num = 7 bricklet.group0.cs7.driver = gpio bricklet.group0.cs7.name = gpio73 #2_B1 ##P31 ### 73 bricklet.group0.cs7.num = 73 bricklet.group0.cs8.driver = gpio bricklet.group0.cs8.name = gpio74 #2_B2 ##P29 ### 74 Dabei habe ich versucht die GPIO Pins denen auf dem ROCK pi anzupassen. Für group0.cs6 habe ich nichts "passendes" gefunden. Wenn ich jetzt den brickd starte, erhalte ich unter anderern diese logs: 2023-03-31 19:40:46.084804 <D> <bricklet.c:260> No HAT product_id file in device tree, not using default HAT Brick config 2023-03-31 19:40:46.084857 <D> <bricklet.c:260> No HAT product_id file in device tree, not using default HAT Zero Brick config 2023-03-31 19:40:46.084908 <D> <bricklet.c:260> No HAT product_id file in device tree, not using default HAT WARP Energy Manager Brick config 2023-03-31 19:40:46.084915 <D> <bricklet.c:465> Found no supported HAT product_id in device tree, checking bricklet.* section in config file instead 2023-03-31 19:40:46.085011 <D> <bricklet.c:546> Found no bricklet.* section in config file Ich kann dann auch per IP mit dem brickv eine Verbindung öffenen, allerdings werden keine Geräte gefunden . Jetzt frage ich mich, wie ich eine HAT Brick config anlegen kann, oder ob evtl etwas ganz anderes (SPI?) das Problem ist. [EDIT] Der vollständige Log ist: [timestamp] [threadID] facility level [function call] <message> -------------------------------------------------------------------------------- [ 0.000010] [000005cb] libusb: debug [libusb_init] created default context [ 0.000197] [000005cb] libusb: debug [libusb_init] libusb v1.0.21.11156 [ 0.000326] [000005cb] libusb: debug [find_usbfs_path] found usbfs at /dev/bus/usb [ 0.000398] [000005cb] libusb: debug [op_init] bulk continuation flag supported [ 0.000428] [000005cb] libusb: debug [op_init] zero length packet flag supported [ 0.000494] [000005cb] libusb: debug [op_init] sysfs can relate devices [ 0.000545] [000005cb] libusb: debug [op_init] sysfs has complete descriptors [ 0.001239] [000005cd] libusb: debug [linux_udev_event_thread_main] udev event thread entering. 2023-03-31 19:40:46.068191 <I> <main_linux.c:369> Brick Daemon 2.4.4 started (pid: 1483, daemonized: 0) 2023-03-31 19:40:46.068233 <I> <main_linux.c:375> Running on Linux system (sysname: Linux, release: 4.4.154-90-rockchip-ga14f6502e045, version: #22 SMP Tue Jul 30 10:32:28 UTC 2019, machine: aarch64) 2023-03-31 19:40:46.068242 <D> <main_linux.c:384> Using config file: /etc/brickd.conf 2023-03-31 19:40:46.068247 <D> <main_linux.c:390> Using PID file: /var/run/brickd.pid 2023-03-31 19:40:46.068252 <W> <main_linux.c:394> Warning(s) in config file '/etc/brickd.conf', run with --check-config option for details 2023-03-31 19:40:46.068259 <D> <event.c:60> Initializing event subsystem 2023-03-31 19:40:46.068322 <D> <event|event.c:270> Added generic event source (handle: 5, name: event-stop, events: 0x0001) at index 0 2023-03-31 19:40:46.068359 <D> <event|event.c:270> Added generic event source (handle: 7, name: signal, events: 0x0001) at index 1 2023-03-31 19:40:46.068386 <D> <hardware.c:39> Initializing hardware subsystem 2023-03-31 19:40:46.068394 <D> <usb.c:296> Initializing USB subsystem 2023-03-31 19:40:46.068422 <D> <event|event.c:270> Added generic event source (handle: 9, name: usb-hotplug, events: 0x0001) at index 2 [ 0.009897] [000005cb] libusb: debug [linux_get_device_address] getting address for device: usb1 detached: 0 [ 0.010004] [000005cb] libusb: debug [linux_get_device_address] scan usb1 [ 0.010251] [000005cb] libusb: debug [linux_get_device_address] bus=1 dev=1 [ 0.010296] [000005cb] libusb: debug [linux_enumerate_device] busnum 1 devaddr 1 session_id 257 [ 0.010323] [000005cb] libusb: debug [linux_enumerate_device] allocating new device for 1/1 (session 257) [ 0.010878] [000005cb] libusb: debug [linux_get_device_address] getting address for device: usb3 detached: 0 [ 0.010960] [000005cb] libusb: debug [linux_get_device_address] scan usb3 [ 0.011164] [000005cb] libusb: debug [linux_get_device_address] bus=3 dev=1 [ 0.011206] [000005cb] libusb: debug [linux_enumerate_device] busnum 3 devaddr 1 session_id 769 [ 0.011230] [000005cb] libusb: debug [linux_enumerate_device] allocating new device for 3/1 (session 769) [ 0.011726] [000005cb] libusb: debug [linux_get_device_address] getting address for device: usb2 detached: 0 [ 0.011805] [000005cb] libusb: debug [linux_get_device_address] scan usb2 [ 0.012003] [000005cb] libusb: debug [linux_get_device_address] bus=2 dev=1 [ 0.012042] [000005cb] libusb: debug [linux_enumerate_device] busnum 2 devaddr 1 session_id 513 [ 0.012066] [000005cb] libusb: debug [linux_enumerate_device] allocating new device for 2/1 (session 513) [ 0.012627] [000005cb] libusb: debug [linux_get_device_address] getting address for device: usb4 detached: 0 [ 0.012705] [000005cb] libusb: debug [linux_get_device_address] scan usb4 [ 0.012904] [000005cb] libusb: debug [linux_get_device_address] bus=4 dev=1 [ 0.012945] [000005cb] libusb: debug [linux_enumerate_device] busnum 4 devaddr 1 session_id 1025 [ 0.012968] [000005cb] libusb: debug [linux_enumerate_device] allocating new device for 4/1 (session 1025) [ 0.013502] [000005cb] libusb: debug [linux_get_device_address] getting address for device: usb5 detached: 0 [ 0.013571] [000005cb] libusb: debug [linux_get_device_address] scan usb5 [ 0.013781] [000005cb] libusb: debug [linux_get_device_address] bus=5 dev=1 [ 0.013843] [000005cb] libusb: debug [linux_enumerate_device] busnum 5 devaddr 1 session_id 1281 [ 0.013868] [000005cb] libusb: debug [linux_enumerate_device] allocating new device for 5/1 (session 1281) [ 0.014410] [000005cb] libusb: debug [linux_get_device_address] getting address for device: usb6 detached: 0 [ 0.014487] [000005cb] libusb: debug [linux_get_device_address] scan usb6 [ 0.014698] [000005cb] libusb: debug [linux_get_device_address] bus=6 dev=1 [ 0.014759] [000005cb] libusb: debug [linux_enumerate_device] busnum 6 devaddr 1 session_id 1537 [ 0.014783] [000005cb] libusb: debug [linux_enumerate_device] allocating new device for 6/1 (session 1537) [ 0.015043] [000005cb] libusb: debug [usbi_add_pollfd] add fd 14 events 1 [ 0.015132] [000005cb] libusb: debug [usbi_io_init] using timerfd for timeouts [ 0.015157] [000005cb] libusb: debug [usbi_add_pollfd] add fd 16 events 1 [ 0.015336] [000005cb] libusb: debug [libusb_get_device_list] [ 0.015448] [000005cb] libusb: debug [libusb_get_device_descriptor] [ 0.015484] [000005cb] libusb: debug [libusb_get_device_descriptor] [ 0.015506] [000005cb] libusb: debug [libusb_get_device_descriptor] 2023-03-31 19:40:46.083684 <D> <event|event.c:270> Added USB event source (handle: 14, name: usb-poll, events: 0x0001) at index 3 [ 0.015527] [000005cb] libusb: debug [libusb_get_device_descriptor] [ 0.015717] [000005cb] libusb: debug [libusb_get_device_descriptor] [ 0.015740] [000005cb] libusb: debug [libusb_get_device_descriptor] 2023-03-31 19:40:46.083767 <D> <event|event.c:270> Added USB event source (handle: 16, name: usb-poll, events: 0x0001) at index 4 2023-03-31 19:40:46.083789 <D> <usb.c:413> Starting initial USB device scan 2023-03-31 19:40:46.083794 <D> <usb.c:492> Looking for added/removed USB devices 2023-03-31 19:40:46.083898 <D> <usb.c:186> Found 6 USB device(s) 2023-03-31 19:40:46.084273 <D> <network.c:177> Initializing network subsystem 2023-03-31 19:40:46.084304 <D> <socket.c:164> Opening server socket(s) for address '0.0.0.0' on port 4223 2023-03-31 19:40:46.084478 <D> <socket.c:264> Started listening to '0.0.0.0' (IPv4) resolved from '0.0.0.0' on port 4223 2023-03-31 19:40:46.084506 <D> <event|event.c:270> Added generic event source (handle: 17, name: server, events: 0x0001) at index 5 2023-03-31 19:40:46.084519 <D> <mesh.c:53> Initializing mesh subsystem 2023-03-31 19:40:46.084527 <D> <mesh.c:156> Mesh gateway is enabled 2023-03-31 19:40:46.084532 <D> <socket.c:164> Opening server socket(s) for address '0.0.0.0' on port 4240 [ 0.016610] [000005cb] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.016717] [000005cb] libusb: debug [handle_events] poll fds modified, reallocating [ 0.016755] [000005cb] libusb: debug [handle_events] poll() 2 fds with timeout in 0ms [ 0.016785] [000005cb] libusb: debug [handle_events] poll() returned 0 2023-03-31 19:40:46.084679 <D> <socket.c:264> Started listening to '0.0.0.0' (IPv4) resolved from '0.0.0.0' on port 4240 2023-03-31 19:40:46.084702 <D> <event|event.c:270> Added generic event source (handle: 18, name: mesh-server, events: 0x0001) at index 6 2023-03-31 19:40:46.084804 <D> <bricklet.c:260> No HAT product_id file in device tree, not using default HAT Brick config 2023-03-31 19:40:46.084857 <D> <bricklet.c:260> No HAT product_id file in device tree, not using default HAT Zero Brick config 2023-03-31 19:40:46.084908 <D> <bricklet.c:260> No HAT product_id file in device tree, not using default HAT WARP Energy Manager Brick config 2023-03-31 19:40:46.084915 <D> <bricklet.c:465> Found no supported HAT product_id in device tree, checking bricklet.* section in config file instead 2023-03-31 19:40:46.085011 <D> <bricklet.c:546> Found no bricklet.* section in config file 2023-03-31 19:40:46.085016 <D> <event.c:534> Starting the event loop 2023-03-31 19:40:46.085028 <D> <event|event_linux.c:147> Starting to epoll on 7 event source(s) 2023-03-31 19:40:46.085046 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:40:46.085051 <D> <event|event.c:447> Handling USB event source (handle: 14, name: usb-poll, received-events: 0x0001) 2023-03-31 19:40:46.085280 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:40:46.085288 <D> <event|event_linux.c:147> Starting to epoll on 7 event source(s) 2023-03-31 19:41:49.952954 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:41:49.953044 <D> <event|event.c:447> Handling generic event source (handle: 17, name: server, received-events: 0x0001) 2023-03-31 19:41:49.953161 <D> <client.c:393> Creating client from plain-socket (handle: 19/19) 2023-03-31 19:41:49.953199 <D> <event|event.c:270> Added generic event source (handle: 19, name: client, events: 0x0001) at index 7 2023-03-31 19:41:49.953209 <I> <network.c:304> Added new client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 0, P: 0, A: disabled) 2023-03-31 19:41:49.953218 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:41:49.953226 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:41:49.972535 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:41:49.972714 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:41:49.972793 <D> <packet|client.c:335> Received request (U: 1, L: 8, F: 254, S: 10, R: 0, I: 0, packet: 00 00 00 00 08 FE A0 00) from client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled) 2023-03-31 19:41:49.972820 <D> <packet|hardware.c:106> No stacks connected, dropping request (U: 1, L: 8, F: 254, S: 10, R: 0, I: 0, packet: 00 00 00 00 08 FE A0 00) 2023-03-31 19:41:49.972826 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:41:49.972836 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:41:59.969627 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:41:59.969717 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:41:59.969763 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:41:59.969802 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:41:59.969813 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:42:04.971699 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:42:04.971789 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:42:04.971834 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:42:04.971846 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:42:04.971857 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:42:09.974180 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:42:09.974270 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:42:09.974315 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:42:09.974327 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:42:09.974337 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:42:14.975747 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:42:14.975836 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:42:14.975880 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:42:14.975892 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:42:14.975903 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:42:19.977223 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:42:19.977314 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:42:19.977358 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:42:19.977370 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:42:19.977381 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:42:24.978410 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:42:24.978499 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:42:24.978549 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:42:24.978561 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:42:24.978572 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:42:29.979440 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:42:29.979531 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:42:29.979576 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:42:29.979588 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:42:29.979599 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:42:33.730367 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:42:33.730487 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:42:33.730526 <I> <client.c:263> Client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 0, P: 0, A: disabled) disconnected by peer 2023-03-31 19:42:33.730537 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:42:33.730543 <D> <network.c:346> Removing disconnected client (N: 192.168.179.127:58865, T: plain-socket, H: 19/19, B: 0, P: 0, A: disabled) 2023-03-31 19:42:33.730568 <D> <event|event.c:408> Marked generic event source (handle: 19, name: client, events: 0x0001) as removed at index 7 2023-03-31 19:42:33.730724 <D> <event|event.c:427> Removed generic event source (handle: 19, name: client, events: 0x0001) at index 7 2023-03-31 19:42:33.730740 <D> <event|event_linux.c:147> Starting to epoll on 7 event source(s) 2023-03-31 19:45:04.510430 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:04.510521 <D> <event|event.c:447> Handling generic event source (handle: 17, name: server, received-events: 0x0001) 2023-03-31 19:45:04.510617 <D> <client.c:393> Creating client from plain-socket (handle: 19/19) 2023-03-31 19:45:04.510645 <D> <event|event.c:270> Added generic event source (handle: 19, name: client, events: 0x0001) at index 7 2023-03-31 19:45:04.510655 <I> <network.c:304> Added new client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 0, P: 0, A: disabled) 2023-03-31 19:45:04.510665 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:04.510673 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:04.523302 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:04.523393 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:04.523458 <D> <packet|client.c:335> Received request (U: 1, L: 8, F: 254, S: 12, R: 0, I: 0, packet: 00 00 00 00 08 FE C0 00) from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled) 2023-03-31 19:45:04.523485 <D> <packet|hardware.c:106> No stacks connected, dropping request (U: 1, L: 8, F: 254, S: 12, R: 0, I: 0, packet: 00 00 00 00 08 FE C0 00) 2023-03-31 19:45:04.523491 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:04.523500 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:14.510314 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:14.510404 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:14.510447 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:14.510459 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:14.510469 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:19.510768 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:19.510860 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:19.510905 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:19.510917 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:19.510928 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:24.512936 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:24.513026 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:24.513072 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:24.513110 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:24.513121 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:29.513831 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:29.513922 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:29.513966 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:29.513978 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:29.513989 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:34.514631 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:34.514721 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:34.514763 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:34.514775 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:34.514785 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:39.515342 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:39.515433 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:39.515478 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:39.515489 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:39.515500 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:44.516291 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:44.516381 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:44.516426 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:44.516438 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:44.516448 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:49.517225 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:49.517315 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:49.517359 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:49.517371 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:49.517382 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:54.518484 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:54.518575 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:54.518619 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:54.518631 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:54.518642 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:45:59.519544 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:45:59.519633 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:45:59.519703 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:45:59.519715 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:45:59.519725 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:46:04.520988 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:46:04.521072 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:46:04.521118 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:46:04.521130 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:46:04.521141 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:46:09.521620 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:46:09.521710 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:46:09.521754 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:46:09.521766 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:46:09.521776 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:46:14.522581 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:46:14.522671 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:46:14.522716 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:46:14.522728 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:46:14.522738 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:46:19.523086 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:46:19.523175 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:46:19.523220 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:46:19.523232 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:46:19.523242 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:46:24.523699 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:46:24.523773 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:46:24.523816 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:46:24.523828 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:46:24.523838 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:46:29.524381 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:46:29.524470 <D> <event|event.c:447> Handling generic event source (handle: 19, name: client, received-events: 0x0001) 2023-03-31 19:46:29.524521 <D> <packet|client.c:325> Received disconnect probe from client (N: 192.168.179.127:58977, T: plain-socket, H: 19/19, B: 8, P: 0, A: disabled), dropping request 2023-03-31 19:46:29.524533 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:46:29.524544 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) ^C2023-03-31 19:46:31.565530 <D> <event_linux.c:154> EPoll got interrupted 2023-03-31 19:46:31.565604 <D> <event|event_linux.c:147> Starting to epoll on 8 event source(s) 2023-03-31 19:46:31.565622 <D> <event|event_linux.c:166> EPoll returned 1 event source(s) as ready 2023-03-31 19:46:31.565628 <D> <event|event.c:447> Handling generic event source (handle: 7, name: signal, received-events: 0x0001) 2023-03-31 19:46:31.565666 <I> <signal.c:51> Received SIGINT 2023-03-31 19:46:31.565682 <D> <event.c:568> Stopping the event loop 2023-03-31 19:46:31.565686 <D> <event|event_linux.c:179> Handled all ready event sources 2023-03-31 19:46:31.565700 <D> <event.c:541> Event loop stopped 2023-03-31 19:46:31.565713 <D> <mesh.c:74> Shutting down mesh subsystem 2023-03-31 19:46:31.565731 <D> <event|event.c:408> Marked generic event source (handle: 18, name: mesh-server, events: 0x0001) as removed at index 6 [345.498260] [000005cb] libusb: debug [libusb_exit] [345.498385] [000005cb] libusb: debug [libusb_exit] destroying default context [345.498441] [000005cb] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling [345.498467] [000005cb] libusb: debug [handle_events] poll() 2 fds with timeout in 0ms [345.498512] [000005cb] libusb: debug [handle_events] poll() returned 1 [345.498546] [000005cb] libusb: debug [handle_events] caught a fish on the event pipe [345.498630] [000005cb] libusb: debug [handle_events] hotplug message received [345.498677] [000005cb] libusb: debug [handle_events] poll() 2 fds with timeout in 0ms [345.498703] [000005cb] libusb: debug [handle_events] poll() returned 1 [345.498723] [000005cb] libusb: debug [handle_events] caught a fish on the event pipe [345.498742] [000005cb] libusb: debug [handle_events] hotplug message received [345.498773] [000005cb] libusb: debug [handle_events] poll() 2 fds with timeout in 0ms 2023-03-31 19:46:31.566454 <D> <network.c:275> Shutting down network subsystem [345.498798] [000005cb] libusb: debug [handle_events] poll() returned 0 [345.499146] [000005cb] libusb: debug [libusb_unref_device] destroy device 6.1 2023-03-31 19:46:31.566482 <D> <event|event.c:408> Marked generic event source (handle: 17, name: server, events: 0x0001) as removed at index 5 2023-03-31 19:46:31.566535 <D> <event|event.c:408> Marked generic event source (handle: 19, name: client, events: 0x0001) as removed at index 7 2023-03-31 19:46:31.566639 <D> <usb.c:451> Shutting down USB subsystem 2023-03-31 19:46:31.566662 <D> <event|event.c:408> Marked USB event source (handle: 14, name: usb-poll, events: 0x0001) as removed at index 3 [345.499224] [000005cb] libusb: debug [libusb_unref_device] destroy device 5.1 2023-03-31 19:46:31.566679 <D> <event|event.c:408> Marked USB event source (handle: 16, name: usb-poll, events: 0x0001) as removed at index 4 [345.499596] [000005cb] libusb: debug [libusb_unref_device] destroy device 4.1 [345.499638] [000005cb] libusb: debug [libusb_unref_device] destroy device 2.1 [345.499672] [000005cb] libusb: debug [libusb_unref_device] destroy device 3.1 [345.499705] [000005cb] libusb: debug [libusb_unref_device] destroy device 1.1 [345.499738] [000005cb] libusb: debug [usbi_remove_pollfd] remove fd 14 [345.499853] [000005cb] libusb: debug [usbi_remove_pollfd] remove fd 16 [345.500024] [000005cd] libusb: debug [linux_udev_event_thread_main] udev event thread exiting 2023-03-31 19:46:31.568980 <D> <event|event.c:408> Marked generic event source (handle: 9, name: usb-hotplug, events: 0x0001) as removed at index 2 2023-03-31 19:46:31.569124 <D> <hardware.c:53> Shutting down hardware subsystem 2023-03-31 19:46:31.569157 <D> <event|event.c:408> Marked generic event source (handle: 7, name: signal, events: 0x0001) as removed at index 1 2023-03-31 19:46:31.569201 <D> <event.c:124> Shutting down event subsystem 2023-03-31 19:46:31.569215 <D> <event|event.c:408> Marked generic event source (handle: 5, name: event-stop, events: 0x0001) as removed at index 0 2023-03-31 19:46:31.569268 <D> <event|event.c:427> Removed generic event source (handle: 19, name: client, events: 0x0001) at index 7 2023-03-31 19:46:31.569281 <D> <event|event.c:427> Removed generic event source (handle: 18, name: mesh-server, events: 0x0001) at index 6 2023-03-31 19:46:31.569292 <D> <event|event.c:427> Removed generic event source (handle: 17, name: server, events: 0x0001) at index 5 2023-03-31 19:46:31.569302 <D> <event|event.c:427> Removed USB event source (handle: 16, name: usb-poll, events: 0x0001) at index 4 2023-03-31 19:46:31.569312 <D> <event|event.c:427> Removed USB event source (handle: 14, name: usb-poll, events: 0x0001) at index 3 2023-03-31 19:46:31.569322 <D> <event|event.c:427> Removed generic event source (handle: 9, name: usb-hotplug, events: 0x0001) at index 2 2023-03-31 19:46:31.569332 <D> <event|event.c:427> Removed generic event source (handle: 7, name: signal, events: 0x0001) at index 1 2023-03-31 19:46:31.569342 <D> <event|event.c:427> Removed generic event source (handle: 5, name: event-stop, events: 0x0001) at index 0 2023-03-31 19:46:31.569353 <I> <main_linux.c:559> Brick Daemon 2.4.4 stopped root@linaro-alip:/# bearbeitet March 31, 2023 at 19:49 von FATTOMCAT Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
photron Geschrieben April 1, 2023 at 10:45 Share Geschrieben April 1, 2023 at 10:45 Du bekommst den spidev Fehler nicht mehr, weil brickd jetzt gar nicht mehr soweit kommt. 2023-03-31 19:40:46.085011 <D> <bricklet.c:546> Found no bricklet.* section in config file brickd versteht die /etc/brckd.conf Datei nicht mehr. 2023-03-31 19:40:46.068252 <W> <main_linux.c:394> Warning(s) in config file '/etc/brickd.conf', run with --check-config option for details Führe bitte diesen Befehl in eine Terminal aus und poste die Ausgabe hier. sudo brickd --check-config Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
FATTOMCAT Geschrieben April 2, 2023 at 01:05 Autor Share Geschrieben April 2, 2023 at 01:05 sudo brickd --check-config liefert: Line 80 contains non-printable ASCII character: 0x09 Line 84 contains non-printable ASCII character: 0x09 Line 88 contains non-printable ASCII character: 0x09 Line 92 contains non-printable ASCII character: 0x09 Line 96 contains non-printable ASCII character: 0x09 Line 100 contains non-printable ASCII character: 0x09 Line 106 contains non-printable ASCII character: 0x09 Line 110 contains non-printable ASCII character: 0x09 Line 114 contains non-printable ASCII character: 0x09 Warning(s) in config file '/etc/brickd.conf' Using the following config values: listen.address = 0.0.0.0 listen.plain_port = 4223 listen.websocket_port = 0 listen.mesh_gateway_port = 4240 listen.dual_stack = off authentication.secret = log.level = debug log.debug_filter = bricklet.portA.sleep_between_reads = 200 bricklet.portB.sleep_between_reads = 200 bricklet.portC.sleep_between_reads = 200 bricklet.portD.sleep_between_reads = 200 bricklet.portE.sleep_between_reads = 200 bricklet.portF.sleep_between_reads = 200 bricklet.portG.sleep_between_reads = 200 bricklet.portH.sleep_between_reads = 200 bricklet.portI.sleep_between_reads = 200 bricklet.portJ.sleep_between_reads = 200 bricklet.portHAT.sleep_between_reads = 2000 bricklet.spi.driver = auto bricklet.group0.spidev = /dev/spidev32766.0 bricklet.group1.spidev = bricklet.group0.cs0.driver = gpio bricklet.group0.cs1.driver = gpio bricklet.group0.cs2.driver = gpio bricklet.group0.cs3.driver = gpio bricklet.group0.cs4.driver = gpio bricklet.group0.cs5.driver = gpio bricklet.group0.cs6.driver = gpio bricklet.group0.cs7.driver = gpio bricklet.group0.cs8.driver = gpio bricklet.group0.cs9.driver = <unknown> bricklet.group1.cs0.driver = <unknown> bricklet.group1.cs1.driver = <unknown> bricklet.group1.cs2.driver = <unknown> bricklet.group1.cs3.driver = <unknown> bricklet.group1.cs4.driver = <unknown> bricklet.group1.cs5.driver = <unknown> bricklet.group1.cs6.driver = <unknown> bricklet.group1.cs7.driver = <unknown> bricklet.group1.cs8.driver = <unknown> bricklet.group1.cs9.driver = <unknown> bricklet.group0.cs0.num = 154 bricklet.group0.cs1.num = 149 bricklet.group0.cs2.num = 157 bricklet.group0.cs3.num = 158 bricklet.group0.cs4.num = 150 bricklet.group0.cs5.num = 156 bricklet.group0.cs6.num = 7 bricklet.group0.cs7.num = 73 bricklet.group0.cs8.num = 74 bricklet.group0.cs9.num = -1 bricklet.group1.cs0.num = -1 bricklet.group1.cs1.num = -1 bricklet.group1.cs2.num = -1 bricklet.group1.cs3.num = -1 bricklet.group1.cs4.num = -1 bricklet.group1.cs5.num = -1 bricklet.group1.cs6.num = -1 bricklet.group1.cs7.num = -1 bricklet.group1.cs8.num = -1 bricklet.group1.cs9.num = -1 bricklet.group0.cs0.name = bricklet.group0.cs1.name = bricklet.group0.cs2.name = bricklet.group0.cs3.name = bricklet.group0.cs4.name = bricklet.group0.cs5.name = bricklet.group0.cs6.name = bricklet.group0.cs7.name = bricklet.group0.cs8.name = bricklet.group0.cs9.name = bricklet.group1.cs0.name = bricklet.group1.cs1.name = bricklet.group1.cs2.name = bricklet.group1.cs3.name = bricklet.group1.cs4.name = bricklet.group1.cs5.name = bricklet.group1.cs6.name = bricklet.group1.cs7.name = bricklet.group1.cs8.name = bricklet.group1.cs9.name = Ich hab daraufhin die tabs aus den Kommentaren entfernt und in die nächste Zeile verschoben: No warnings or errors in config file '/etc/brickd.conf' Using the following config values: listen.address = 0.0.0.0 listen.plain_port = 4223 listen.websocket_port = 0 listen.mesh_gateway_port = 4240 listen.dual_stack = off authentication.secret = log.level = debug log.debug_filter = bricklet.portA.sleep_between_reads = 200 bricklet.portB.sleep_between_reads = 200 bricklet.portC.sleep_between_reads = 200 bricklet.portD.sleep_between_reads = 200 bricklet.portE.sleep_between_reads = 200 bricklet.portF.sleep_between_reads = 200 bricklet.portG.sleep_between_reads = 200 bricklet.portH.sleep_between_reads = 200 bricklet.portI.sleep_between_reads = 200 bricklet.portJ.sleep_between_reads = 200 bricklet.portHAT.sleep_between_reads = 2000 bricklet.spi.driver = auto bricklet.group0.spidev = /dev/spidev32766.0 bricklet.group1.spidev = bricklet.group0.cs0.driver = gpio bricklet.group0.cs1.driver = gpio bricklet.group0.cs2.driver = gpio bricklet.group0.cs3.driver = gpio bricklet.group0.cs4.driver = gpio bricklet.group0.cs5.driver = gpio bricklet.group0.cs6.driver = gpio bricklet.group0.cs7.driver = gpio bricklet.group0.cs8.driver = gpio bricklet.group0.cs9.driver = <unknown> bricklet.group1.cs0.driver = <unknown> bricklet.group1.cs1.driver = <unknown> bricklet.group1.cs2.driver = <unknown> bricklet.group1.cs3.driver = <unknown> bricklet.group1.cs4.driver = <unknown> bricklet.group1.cs5.driver = <unknown> bricklet.group1.cs6.driver = <unknown> bricklet.group1.cs7.driver = <unknown> bricklet.group1.cs8.driver = <unknown> bricklet.group1.cs9.driver = <unknown> bricklet.group0.cs0.num = 154 bricklet.group0.cs1.num = 149 bricklet.group0.cs2.num = 157 bricklet.group0.cs3.num = 158 bricklet.group0.cs4.num = 150 bricklet.group0.cs5.num = 156 bricklet.group0.cs6.num = 7 bricklet.group0.cs7.num = 73 bricklet.group0.cs8.num = 74 bricklet.group0.cs9.num = -1 bricklet.group1.cs0.num = -1 bricklet.group1.cs1.num = -1 bricklet.group1.cs2.num = -1 bricklet.group1.cs3.num = -1 bricklet.group1.cs4.num = -1 bricklet.group1.cs5.num = -1 bricklet.group1.cs6.num = -1 bricklet.group1.cs7.num = -1 bricklet.group1.cs8.num = -1 bricklet.group1.cs9.num = -1 bricklet.group0.cs0.name = gpio154 bricklet.group0.cs1.name = gpio149 bricklet.group0.cs2.name = gpio157 bricklet.group0.cs3.name = gpio158 bricklet.group0.cs4.name = gpio150 bricklet.group0.cs5.name = gpio156 bricklet.group0.cs6.name = gpio7 bricklet.group0.cs7.name = gpio73 bricklet.group0.cs8.name = gpio74 bricklet.group0.cs9.name = bricklet.group1.cs0.name = bricklet.group1.cs1.name = bricklet.group1.cs2.name = bricklet.group1.cs3.name = bricklet.group1.cs4.name = bricklet.group1.cs5.name = bricklet.group1.cs6.name = bricklet.group1.cs7.name = bricklet.group1.cs8.name = bricklet.group1.cs9.name = Jetzt erhalte ich wieder den Fehler vom Anfang. Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
photron Geschrieben April 13, 2023 at 11:14 Share Geschrieben April 13, 2023 at 11:14 Der Kernel meldet EINVAL (ungültiges Argument) für den Versuch den SPI Modus auf SPI_MODE_3|SPI_NO_CS zu konfigurieren. Ich habe in den Kernel Source Code geschaut und vermute, dass das Rock Pi 4 den SPI_NO_CS Modus nicht unterstüzt. https://elixir.bootlin.com/linux/v5.10/source/drivers/spi/spi.c#L3342 https://elixir.bootlin.com/linux/v5.10/source/drivers/spi/spi-rockchip.c#L725 https://elixir.bootlin.com/linux/v5.10/source/drivers/spi/spi-bcm2835.c#L1289 Teste mal bitte die angehängt brickd Version. Die versucht jetzt nicht mehr SPI_NO_CS zu setzen. Dadurch bewegt die SPI Hardware-Einheit dann unnötigerweise den Chip-Select-Pin, was aber hoffentlich ins Leere läuft. brickd_2.4.4+snapshot~889c425_arm64.deb Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.