Closed wolwin closed 1 year ago
Das selbe Problem habe ich auch. Hab dann ein Backup einspielen müssen. Ähnliche Konfiguration Proxmox 7.2 und OVA und die USB-Platine mit dem Funkmodul.
Damit gehts.
Identifying Homematic RF-Hardware: ....HmRF: RPI-RF-MOD/HB-RF-USB@usb-0000:01:1b.0-1, HmIP: RPI-RF-MOD/HB-RF-USB@usb-0000:01:1b.0-1, OK Updating Homematic RF-Hardware: RPI-RF-MOD: 4.4.22, not necessary, OK
Nachdem ich jetzt die neue Version eingespielt und damit der Adapter auch nicht ging, hab ich mal einen anderen USB-Port benutzt. Jetzt funktioniert es. Vielleicht mag es keine Front-USB....?
Hallo,
ich habe genau die gleiche Konstellation. Der rfd kommt nicht hoch. Neues RaspberryMatic installiert unter Proxmox, der HM-MOD-RPI-PCB wird nicht erkannt. Der HB-RF-USB-2 wird erkannt. Woran könnt das liegen ? Wenn ich noch was anderes an Infos liefern kann, lasst es mich wissen. Danke
boot.log: Identifying Homematic RF-Hardware: ...HmRF: n/a, HmIP: n/a, OK Updating Homematic RF-Hardware: no GPIO/USB connected RF-hardware found
messages Feb 2 13:53:20 localhost kern.info kernel: [ 1.342227] usb 2-1: New USB device found, idVendor=10c4, idProduct=8c07, bcdDevice= 2.00 Feb 2 13:53:20 localhost kern.info kernel: [ 1.342231] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Feb 2 13:53:20 localhost kern.info kernel: [ 1.342232] usb 2-1: Product: HB-RF-USB-2 Feb 2 13:53:20 localhost kern.info kernel: [ 1.342233] usb 2-1: Manufacturer: Alexander Reinert Feb 2 13:53:20 localhost kern.info kernel: [ 1.342234] usb 2-1: SerialNumber: 1ce22b1eb99eea1193546dd6fe9faf31
Feb 2 13:53:20 localhost kern.info kernel: [ 9.520420] usb 2-1: DKey: 6531623232656331 3131616565393962 3664643634353339 3133666166396566 Feb 2 13:53:20 localhost kern.info kernel: [ 9.520426] usb 2-1: HKey: c9dc068f4ac24235 7bfe4373680d0aad 53afc086f6987331 7b485c3e39c6d0f7 Feb 2 13:53:20 localhost kern.info kernel: [ 9.520427] usb 2-1: SKey: 6680a37521644dc0 95e8067c938c4082 0a7a430b39e144d8 cc75bdf68c1397ea Feb 2 13:53:20 localhost kern.info kernel: [ 9.520429] usb 2-1: SKey: fb2fc3bcae68d3c2 81825a3fcd6f4d2b 9459c0d1d9c847a7 6b46e414f6aa1cca Feb 2 13:53:20 localhost kern.info kernel: [ 9.520430] usb 2-1: PKey: f50048a8d7cc3f44 ae8460d13cf61d60 2dc161f5272a5876 88c996b27737fbae Feb 2 13:53:20 localhost kern.info kernel: [ 9.520432] usb 2-1: PKey: dd24b0aced521e88 cc457acb4b7c49a4 6745032ab2079847 becfb9f3af25d41f Feb 2 13:53:20 localhost kern.info kernel: [ 9.521356] usb 2-1: Successfully verified device signature Feb 2 13:53:20 localhost kern.info kernel: [ 9.521358] usb 2-1: Found HB-RF-USB-2 with serial 1ce22b1eb99eea1193546dd6fe9faf31 at usb-0000:01:1b.0-1
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of RaspberryMatic and tell us. Also check that all relevant details,
Hallo zusammen,
ich kann das Problem genau so bestätigen. Ich habe mir das HB-RF-USB-2 vor über 1 Monat gekauft und seitdem schon verschiedene Versionen von raspberrymatic und proxmox versucht, leider ohne Erfolg. Das Modul wird korrekt erkannt, jedoch fehlt dem 2102N auf der Platine irgendwas in der Initialisierung. Er gibt die 3,3V für den HM-MOD-RPI-PCB nicht frei. Anscheinend ging das ganze ja mal. Hätte jemand eine Info für mich, in welcher Konstellation von raspberrymatic und proxmox (Versionen) das ganze funktioniert hat? Dann hätte ich einen Anhaltspunkt und könnte versuchen den Fehler einzugrenzen.
Hab jetzt einen Workaround gefunden, die Ursache leider nicht. Der HM-MOD-RPI-PCB bekommt einfach keine anständige Spannung von 3,3V. Diese sollte durch den CP2102N nach der Initialisierung freigegeben werden, was allerdings nicht funktioniert. Ich hab jetzt die Platine mit einem Draht gepatched. Der Draht geht von der +3,3V Seite von C4/C3 an den Ausgang von Q1 bzw. Pin 1 des Headers. Somit umgehe ich Q1 und das PWREN-Signal komplett. Nicht Sinn der Sache aber für mich aktuell einzige Lösung.
Somit funktioniert jetzt auch die Kommunikation, detect_radio_module findet direkt den HM-MOD-RPI-PCB.
Hab jetzt einen Workaround gefunden, die Ursache leider nicht. Der HM-MOD-RPI-PCB bekommt einfach keine anständige Spannung von 3,3V. Diese sollte durch den CP2102N nach der Initialisierung freigegeben werden, was allerdings nicht funktioniert. Ich hab jetzt die Platine mit einem Draht gepatched. Der Draht geht von der +3,3V Seite von C4/C3 an den Ausgang von Q1 bzw. Pin 1 des Headers. Somit umgehe ich Q1 und das PWREN-Signal komplett. Nicht Sinn der Sache aber für mich aktuell einzige Lösung.
Vielleicht kann @alexreinert sich diesbzgl. etwas zusammenreimen? Vielleicht gibt es da ja auch etwas was im Treiber des HB-RF-USB-2
übersehen wurde bzw. in neueren Version problematisch wurde oder es gibt halt irgendein Hardwaredefekt auf deinem HB-RF-USB-2
?!?!.... @alexreinert kann da bestimmt weiterhelfen.
@reddevil156 Du könntest auch mal probieren/testen ob in früheren Versionen von RaspberryMatic (wo ältere Versionen des kernel modules für das HB-RF-USB-2 bzw. generic_raw_uart dabei sind) besser funktionieren auch ohne dein Hardware-Patch. So z.B. einfach mal Version 3.67.10.20230225, 3.63.9.20220521 oder sogar 3.63.9.20220430 probieren. Wäre gut das als Feedback zu bekommen falls es hier doch irgendein Bug/Problem im Treiber gibt...
Q1 wird automatisch vom CP2102N angesteuert, wenn die USB Initialisierung erfolgreich durchgeführt wurde und der per USB Enumeration angeforderte Strom vom Host freigegeben wird. Das sind Mechanismen die komplett unabhängig vom Treiber in der Hardware und dem Linux USB Subsystem passieren. Ich sehe daher nur zwei potentielle Ursachen: Defekt der HB-RF-USB-2 oder einen USB Port der nicht den angeforderten Strom liefern darf/will.
Interessant wäre auch ein Test auf einer Debian VM mit debmatic. Dann würde das dem Setup entsprechen, mit der ich den Treiber entwickle und primär teste.
Interessant wäre auch ein Test auf einer Debian VM mit debmatic. Dann würde das dem Setup entsprechen, mit der ich den Treiber entwickle und primär teste.
Das ist eine gute Idee. Ich hab leider selbst kein HB-RF-USB-2
übrig um das selbst zu testen, aber in meiner produktiven Umgebung funktioniert das HB-RF-USB-2
mit aktuellen RaspberryMatic tadellos – zwar mit RPI-RF-MOD
, aber da konnte ich noch keine Probleme feststellen. Oder könnte das auch am Kernel 6.x liegen der vielleicht ein anderes verhalten aufweist oder power management etwas stärker umsetzt? Wie gesagt, wenn @reddevil156 das nochmal mit früheren Versionen von RM testen könnte wäre das schon ein Anfang...
Hi ihr beiden,
gerne teste ich noch was. Das Problem scheinen ja mehr Leute zu haben als nur ich.
Kurz einige Sachen noch vorne weg, die ich getestet habe. Fehlerbild ist in allen Fällen das gleiche: HB-RF-USB-2 wird korrekt erkannt (siehe dmesg Meldungen), Spannung am Modul bleibt bei 1,2V statt 3,3V, keine Kommunikation findet statt.
Was funktioniert hat:
So, sorry für das zutexten.
@reddevil156 Du sprichst in deinem letzten reply von RPI-RF-MOD
. Dachte du nutzt ein HM-MOD-RPI-PCB
am HB-RF-USB-2
?
Habs eben editiert, bin schon selbst etwas durcheinander. Ist ein HM-MOD-RPI-PCB am HB-RF-USB-2
Weitere Frage wäre bzgl. RaspberryMatic: Wie weit bist du mit den Versionen zurückgegangen?
Die letzte Version, die mir dein Download Script angeboten hat
Die letzte Version, die mir dein Download Script angeboten hat
Und das wäre? Ansonsten bitte einfach mal direkt von der releases-page das *.ova eine noch älteren Version herunterladen und entsprechend in Proxmox importieren...
Hab jetzt spontan 3.63.9.20220521 mit Kernel 5.15.41 getestet, Problem besteht immer noch
Auch wenn das nicht hilft: Ich hatte keine Lust mehr drauf und bin wieder auf einen Raspi umgezogen. Ohne USB-Modul.
Moin zusammen,
ich schätze ich kann den Fehler jetzt eingrenzen. Bei den ganzen Versuchen hab ich mir den CP2102N gegrillt, ging dann gar nichts mehr. Der Gute hatte einen Kurzschluss und wurde heiß. Hab mir in China einen neuen Satz bestellt und aufgelötet. Daraufhin wollte ich diesen mit dem Simplicity Studio und der im HB_RF_USB_2 github Repository angegebenen Konfiguration flashen. Dies wollte das Studio absolut nicht machen und meinte nur, der Chip wäre nicht korrekt. Hab daraufhin einfach eine neue Konfiguration angelegt und sämtliche Einstellungen händisch übernommen. Der Chip ist nun geflasht, und siehe da: Er funktioniert so wie er soll. Ich kann abstecken, neu booten sowie Ports tauschen und alles funktioniert. Das einzige was mir jetzt leider fehlt ist die device signature. Ich hoffe dies macht keine Probleme.
Meine Vermutung: Der auf meiner Platine ursprünglich verbaute Chip war ein CP2102N-A02-GQFN20. Mit genau dem selben Modell habe ich diesen auch ersetzt, also Revision A02. Ich vermute, dass ursprünglich eine andere Revision auf den Platinen war und irgendwas in der Konfiguration anders ist, auch wenn man dies nicht sieht. Oder es liegt an der device signature, die ich nicht nachbauen kann. Meine config für Simplicity Studio hab ich in der zip Datei angehängt, falls jemand Interesse hat.
Hier noch das log dazu:
[ 2096.572172] usb 2-1: new full-speed USB device number 4 using xhci_hcd
[ 2096.702891] usb 2-1: New USB device found, idVendor=10c4, idProduct=8c07, bcdDevice= 1.01
[ 2096.702895] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2096.702897] usb 2-1: Product: HB-RF-USB-2
[ 2096.702898] usb 2-1: Manufacturer: Alexander Reinert
[ 2096.702899] usb 2-1: SerialNumber: b066c001ba9eea1181eb68d6fe9faf31
[ 2096.706049] usb 2-1: Could not verify device signature
[ 2096.706051] usb 2-1: Found HB-RF-USB-2 with serial b066c001ba9eea1181eb68d6fe9faf31 at usb-0000:01:1b.0-1
[ 2096.706625] raw-uart raw-uart1: Reset radio module
[ 2096.810071] raw-uart raw-uart1: Registered new raw-uart device using underlying device HB-RF-USB-2@usb-0000:01:1b.0-1.
root@homematic-raspi:~# detect_radio_module --debug /dev/raw-uart1
13:57:18.862730 Sending HM frame: fd 00 03 fe 00 01 14 1e
13:57:21.863152 Sending HM frame: fd 00 03 00 01 00 9e 03
13:57:21.868296 Received HM frame: fd 00 0d 00 00 01 04 02 43 6f 5f 43 50 55 5f 42 4c 7f
13:57:24.863649 Sending HM frame: fd 00 03 fe 02 01 98 1d
13:57:27.864044 Sending HM frame: fd 00 03 00 03 00 12 00
13:57:27.869055 Received HM frame: fd 00 0d 00 03 04 02 43 6f 5f 43 50 55 5f 42 4c ff 87
13:57:27.869193 Sending HM frame: fd 00 03 fe 04 01 8c 1d
13:57:30.869582 Sending HM frame: fd 00 03 00 05 00 06 00
13:57:30.874586 Received HM frame: fd 00 0d 00 05 04 02 43 6f 5f 43 50 55 5f 42 4c fe 86
13:57:30.874658 Sending HM frame: fd 00 03 00 06 03 0c 0a
13:57:31.408943 Received HM frame: fd 00 04 00 06 04 01 99 45
13:57:31.446331 Received HM frame: fd 00 10 fe 01 00 44 75 61 6c 43 6f 50 72 6f 5f 41 70 70 b7 36
13:57:31.446467 Sending HM frame: fd 00 03 01 07 09 0a 22
13:57:31.452207 Received HM frame: fd 00 05 01 07 04 01 03 aa 27
13:57:31.452347 Sending HM frame: fd 00 03 01 08 02 a8 1b
13:57:31.557700 Received HM frame: fd 00 0d 01 08 04 01 02 08 06 01 00 03 01 14 03 f0 16
13:57:31.557837 Sending HM frame: fd 00 03 02 09 01 2e 2e
13:57:31.563403 Received HM frame: fd 00 07 02 09 06 01 b8 4d 75 29 7f
13:57:31.563538 Sending HM frame: fd 00 03 fe 0a 04 28 00
13:57:31.570407 Received HM frame: fd 00 10 fe 0a 05 01 30 14 f7 11 a0 61 a7 d5 69 9d aa a8 34 ca
13:57:31.570545 Sending HM frame: fd 00 03 03 0b 08 22 0c
13:57:31.576017 Received HM frame: fd 00 07 03 0b 01 01 4f 69 9a 8f ca
13:57:31.576151 Sending HM frame: fd 00 03 03 0c 07 b0 2d
13:57:31.582837 Received HM frame: fd 00 0e 03 0c 01 01 4e 45 51 31 33 32 37 37 38 34 f9 ce
HM-MOD-RPI-PCB NEQ1327784 3014F711A061A7D5699DAAA8 0x4F699A 0xB84D75 2.8.6```
ich schätze ich kann den Fehler jetzt eingrenzen. Bei den ganzen Versuchen hab ich mir den CP2102N gegrillt, ging dann gar nichts mehr. Der Gute hatte einen Kurzschluss und wurde heiß. Hab mir in China einen neuen Satz bestellt und aufgelötet. [...] und siehe da: Er funktioniert so wie er soll.
Das liest sich für mich jetzt aber nach einem Hardwareproblem das du ursprünglich mit deinem HB-RF-USB-2 hattest, denn wenn es jetzt aktuell mit der gleichen RaspberryMatic Version funktioniert nachdem du den CP2102N getauscht hast auf der Platine kann es ja eigentlich nicht an RaspberryMatic bzw. am treiber des HB-RF-USB-2 liegen der in RaspberryMatic integriert ist. Insofern könnte man dieses Ticket/Issue hier also zu machen, denn auch bei den anderen ist hier ja anscheinend "Stille" eingekehrt was dieses Problem hier angeht und es scheint mir kein systematisches Problem zu sein, sondern immer nur Einzelfallprobleme im lokalen Setup...
Ja, war wohl ein Hardwareproblem. Das Ticket hier kann damit eigentlich zu. Wäre nur gut, wenn @alexreinert sich das noch anschauen täte, ob bei den Platinen ein Problem in Richtung Firmware besteht. Ich war ja nicht der einzige, der das Problem hatte.
Ich fertige die Platinen nicht, daher kann ich nicht wirklich was dazu sagen. Was ich aber sagen kann, den A02 kann man nicht vollständig lauffähig mit dem Simplicity Studio flashen, zumindest nicht mit meinen direkt von Silabs gelieferten Dev Samples. Ich habe daher einen eigenen Programmer, den ich aber bisher noch nicht soweit fertig habe, dass man den auf die Community loslassen könnte.
@alexreinert Besten Dank für das Feedback. Eine Frage hätte ich allerdings noch. Du schreibst "nicht vollständig lauffähig", bei mir funktioniert erstmal alles. Was genau geht denn nicht? Hab ich jetzt ein Risiko meine selbst geflashte Platine zu benutzen?
@wolwin, the issue ticket you created does not seem to report a general issue/problem/bug in RaspberryMatic itself, but rather seems to point at a local usage issue that rather requires some support using a discussion fora. It will therefore be moved to the discussion area where you can continue for identifying solutions to your issue.
@wolwin, the issue you reported does not seem to be reproducible by the maintainer of this project. Please provide additional information and more detail and please try to reproduce your problem with a fresh test installation and try to find other users having the same problems so that they can support your observations.
Describe the issue you are experiencing
Nach einigen Tests kann ich sagen, dass in meiner Proxmox 7.2 Installation die aktuelle Raspberrymatic (installiert mit der vereinfachten Proxmox Installation) die Kombination von 'HB-RF-USB-2' mit 'HM-MOD-RPI-PCB' nicht als RF-Hardware erkennt. Gleichwohl wird die Kombination von 'HB-RF-USB-TK' mit 'HM-MOD-RPI-PCB' korrekt erkannt.
Die Hardware Kombination von 'HB-RF-USB-2' mit 'HM-MOD-RPI-PCB' wird an einem RPI3+ mit aktuelle Raspberrymatic problemlos erkannt.
Unter Proxmox wurden alle USB-Kombinationen (USB2 / USB3 Hardware-Ports + Proxmox Einstellung USB3-Support) ohne Erfolg durchprobiert.
Als Hardware wird eine ZBOX CI327 nano eingesetzt: https://www.zotac.com/at/product/mini_pcs/ci327-nano
Der ursprüngliche Thread findet sich auch im HM-Forum: https://homematic-forum.de/forum/viewtopic.php?f=76&t=58988&start=90#p739204
Describe the behavior you expected
Da die HB-RF-USB-2 Platine korrekt von Proxmox und auch der Raspberrymatic erkannt wird, sollte auch die Initialisierung des RF-Funkmoduls funktionieren.
Steps to reproduce the issue
Kombination 'HB-RF-USB-2' mit 'HM-MOD-RPI-PCB' boot.log:
/var/log/messages:
What is the version this bug report is based on?
3.65.8.20220831 und 3.65.11.20221005
Which base platform are you running?
ova (Open Virtual Infrastructure)
Which HomeMatic/homematicIP radio module are you using?
HM-MOD-RPI-PCB
Anything in the logs that might be useful for us?
In der Kombination 'HB-RF-USB-2' mit 'HM-MOD-RPI-PCB' wird das Funkmodul korrekt erkannt:
boot.log:
Additional information
No response