HB-RF-USB Implentierung

OCCU für Betriebssysteme basierend auf Debian

Moderator: Co-Administratoren

quickmic
Beiträge: 518
Registriert: 20.01.2011, 14:39
Hat sich bedankt: 5 Mal
Danksagung erhalten: 4 Mal

HB-RF-USB Implentierung

Beitrag von quickmic » 08.02.2019, 12:23

Vorfuehrung vom viewtopic.php?f=69&t=47691&start=110#p490831
jmaus hat geschrieben:
08.02.2019, 11:16
Na die beiden devices werden ja auch vom "multimacd" erzeugt.
Genau das werden sie eben nicht mit dem selben Fehler:

Code: Alles auswählen

~# /bin/multimacd -f /etc/config/multimacd.conf -l 0 -c
2019/02/08 11:59:19.353 <Debug> FastMacResponder::ThreadFunction() started Id=2108
2019/02/08 11:59:19.353 <Warning> UpstreamCharConnection could not create slave device mmd_hmip: Inappropriate ioctl for device
2019/02/08 11:59:19.354 <Warning> UpstreamCharConnection could not create slave device mmd_bidcos: Inappropriate ioctl for device
2019/02/08 11:59:19.353 <Debug> MacController::ThreadFunction() started. Id=2109
2019/02/08 11:59:19.354 <Debug> Subsystem 2 ThreadFunction() started. Id=2112
2019/02/08 11:59:19.354 <Debug> C<: #0 COMMON IdentifyRequest
2019/02/08 11:59:19.354 <Debug> C< @4287021: bin:FD 00 03 FE 00 01 14 1E
2019/02/08 11:59:19.354 <Debug> SubsystemManager::ThreadFunction() started. Id=2110
2019/02/08 11:59:19.354 <Debug> Subsystem 1 ThreadFunction() started. Id=2111
2019/02/08 11:59:20.199 <Debug> C> @4287866: #71 LLMAC RX @14855ms -62dBm F0 84 70 F1 D0 02 1D 87 D9 00 50 27 31 4A 01 3C CC 12 DE 00 52 00 00 74 00 00
2019/02/08 11:59:20.199 <Debug> C> @4287866: #72 LLMAC RX @15480ms -80dBm 1E 86 70 17 44 54 00 00 00 80 BB 2D
2019/02/08 11:59:20.199 <Debug> C> @4287866: #73 LLMAC RX @15530ms -52dBm 72 86 70 18 68 85 00 00 00 00 CA 2A
2019/02/08 11:59:20.199 <Debug> C> @4287866: #27 HMIP CMD=07  34 10 00 8E 13 D8 D5 13 D8 D5 00 00 00 00 00 00 00 00 85 1B 00 34 06 00
2019/02/08 11:59:20.199 <Debug> CRC error. Calculated 0x870E.
2019/02/08 11:59:20.199 <Debug> C> @4287866: #75 LLMAC RX @21070ms -72dBm 1B 86 70 18 56 B2 00 00 00 00 B8 27
2019/02/08 11:59:20.203 <Debug> C> @4287870: #0 COMMON Response Ack 44 75 61 6C 43 6F 50 72 6F 5F 41 70 70
2019/02/08 11:59:20.203 <Info> Copro application running.
2019/02/08 11:59:20.203 <Debug> C<: #1 TRX GetVersion
2019/02/08 11:59:20.203 <Debug> C< @4287870: bin:FD 00 03 01 01 02 9E 1B
2019/02/08 11:59:20.312 <Debug> C> @4287979: #1 TRX Response Ack 04 00 10 01 00 01 01 28 00
2019/02/08 11:59:20.312 <Info> Vapp=040010 Vbl=010001 Vhmos=012800
2019/02/08 11:59:20.312 <Debug> C<: #2 COMMON GetSGTIN
2019/02/08 11:59:20.312 <Debug> C< @4287979: bin:FD 00 03 FE 02 04 98 03
2019/02/08 11:59:20.320 <Debug> C> @4287987: #2 COMMON Response Ack 30 14 F7 11 A0 00 1F 58 A9 A7 16 AF
2019/02/08 11:59:20.320 <Info> SGTIN=30 14 F7 11 A0 00 1F 58 A9 A7 16 AF
2019/02/08 11:59:20.320 <Debug> C<: #3 LLMAC GetDefaultRfAddress
2019/02/08 11:59:20.320 <Debug> C< @4287987: bin:FD 00 03 03 03 08 92 0F
2019/02/08 11:59:20.326 <Debug> C> @4287993: #3 LLMAC Response ACK @255: 00 FF FF
2019/02/08 11:59:20.326 <Info> RF address=65535
2019/02/08 11:59:20.326 <Debug> C<: #4 LLMAC GetSerialNumber
2019/02/08 11:59:20.327 <Debug> C< @4287993: bin:FD 00 03 03 04 07 00 2E
2019/02/08 11:59:20.336 <Debug> C> @4288003: #4 LLMAC Response ACK @20549: 50 45 51 31 39 34 35 32 36 33
2019/02/08 11:59:20.336 <Info> Serial Number=PEQ1945263
2019/02/08 11:59:20.336 <Debug> C<: #5 LLMAC GetTimestamp
2019/02/08 11:59:20.336 <Debug> C< @4288003: bin:FD 00 03 03 05 02 86 33
2019/02/08 11:59:20.342 <Debug> C> @4288009: #5 LLMAC Response ACK @22020: 56 04
2019/02/08 11:59:20.342 <Info> Timer=22020
2019/02/08 11:59:30.342 <Debug> C<: #6 TRX GetDutyCycle
2019/02/08 11:59:30.342 <Debug> C< @4298009: bin:FD 00 03 01 06 03 8C 1D
2019/02/08 11:59:30.447 <Debug> C> @4298114: #6 TRX Response Ack 00
2019/02/08 11:59:30.447 <Debug> SubsystemBidcos::CheckDutyCycleEventThreshold( 0.0, 0.0 ) = 0
jmaus hat geschrieben:
08.02.2019, 11:16
Warum denkst du denn das du das setserial auf dem /dev/raw-uart brauchst? Das ist nämlich nicht der Fall.
Hast du recht, hatte ich mich verschaut. Ich habe auf der Suche nach dem Fehler die S11InitRFHardware angeschaut, aber stimmt. setserial wird nicht getriggert im Falle vom if [[ -c /dev/raw-uart ]]; then ...
Ganz dumme Idee. Bevor du eine Firmware aufspielst, musst du sicher wissen, was für ein Modul angeschlossen ist, auf der Platine können beide Module aufgesetzt werden (wenn auch nicht gleichzeitig). Wenn das Teil kaputt geflasht ist, dann muss im Zweifel der Nutzer manuell dieses Wissen einbringen. Und es bleibt dabei: Beim RPI-RF-MOD nicht eq3configcmd verwenden, das klappt einfach nicht.
Hatte ich in Erfahrung gebracht, keine Sorge. (2 mal vorher gefragt)

Und der multimacd log schaut auch imho korrekt aus, nur das aus irgendwelchen Gruenden mmd_hmip und mmd_hmip nicht erstellt werden.
Beim RPI-RF-MOD nicht eq3configcmd verwenden, das klappt einfach nicht
Werde ich nichtmehr, alles klar.

Zur Info, ich arbeite Remote mit chka's Testaufbau.

Benutzeravatar
deimos
Beiträge: 5383
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 949 Mal
Kontaktdaten:

Re: HB-RF-USB Implentierung

Beitrag von deimos » 08.02.2019, 12:35

Hi,

Code: Alles auswählen

2019/02/08 11:59:19.353 <Warning> UpstreamCharConnection could not create slave device mmd_hmip: Inappropriate ioctl for device
Das ist die entscheidende Stelle, was sagt den dmesg aus?
Ist das eq3_char_loop Modul zu diesem Zeitpunkt geladen?

Viele Grüße
Alex

quickmic
Beiträge: 518
Registriert: 20.01.2011, 14:39
Hat sich bedankt: 5 Mal
Danksagung erhalten: 4 Mal

Re: HB-RF-USB Implentierung

Beitrag von quickmic » 08.02.2019, 12:38

Code: Alles auswählen

[    3.781613] [TTM] Initializing pool allocator
[    3.781616] [TTM] Initializing DMA pool allocator
[    3.785983] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.785984] [drm] No driver support for vblank timestamp query.
[    3.786262] [drm] Screen Target Display device initialized
[    3.786321] [drm] width 640
[    3.786328] [drm] height 480
[    3.786335] [drm] bpp 32
[    3.787692] [drm] Fifo max 0x00040000 min 0x00001000 cap 0x0000077f
[    3.788380] [drm] Using command buffers with DMA pool.
[    3.788394] [drm] DX: no.
[    3.788395] [drm] Atomic: yes.
[    3.788396] [drm] SM4_1: no.
[    3.792648] fbcon: svgadrmfb (fb0) is primary device
[    3.794565] Console: switching to colour frame buffer device 100x37
[    3.815726] [drm] Initialized vmwgfx 2.15.0 20180704 for 0000:00:0f.0 on minor 0
[    3.843300] RAPL PMU: API unit is 2^-32 Joules, 5 fixed counters, 10737418240 ms ovfl timer
[    3.843302] RAPL PMU: hw unit of domain pp0-core 2^-0 Joules
[    3.843302] RAPL PMU: hw unit of domain package 2^-0 Joules
[    3.843303] RAPL PMU: hw unit of domain dram 2^-0 Joules
[    3.843303] RAPL PMU: hw unit of domain pp1-gpu 2^-0 Joules
[    3.843305] RAPL PMU: hw unit of domain psys 2^-0 Joules
[    3.933488] generic_raw_uart: loading out-of-tree module taints kernel.
[    3.933525] generic_raw_uart: module verification failed: signature and/or required key missing - tainting kernel
[    3.936598] usb 2-2.1: Found HB-RF-USB at usb-0000:02:00.0-2.1
[    4.022251] Adding 1046524k swap on /dev/sda5.  Priority:-2 extents:1 across:1046524k FS
[    4.122706] vmxnet3 0000:0b:00.0 ens192: intr type 3, mode 0, 3 vectors allocated
[    4.123317] vmxnet3 0000:0b:00.0 ens192: NIC Link is Up 10000 Mbps
[    4.153145] usbcore: registered new interface driver usbserial_generic
[    4.153221] usbserial: USB Serial support registered for generic
[    4.156166] usbcore: registered new interface driver cp210x
[    4.156611] usbserial: USB Serial support registered for cp210x
[    4.183878] usbcore: registered new interface driver hb_rf_usb
[    5.092324] random: crng init done
[    5.092328] random: 7 urandom warning(s) missed due to ratelimiting

Code: Alles auswählen

root@CCUx86:~# lsmod
Module                  Size  Used by
eq3_char_loop          20480  0
cp210x                 32768  0
usbserial              53248  1 cp210x
coretemp               16384  0
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
hb_rf_usb              16384  0
generic_raw_uart       20480  1 hb_rf_usb
ghash_clmulni_intel    16384  0
intel_rapl_perf        16384  0
vmw_balloon            24576  0
joydev                 24576  0
serio_raw              16384  0
pcspkr                 16384  0
vmwgfx                327680  1
ttm                   126976  1 vmwgfx
drm_kms_helper        204800  1 vmwgfx
sg                     36864  0
evdev                  28672  2
drm                   491520  4 vmwgfx,drm_kms_helper,ttm
ac                     16384  0
vmw_vmci               81920  1 vmw_balloon
button                 16384  0
ip_tables              28672  0
x_tables               45056  1 ip_tables
autofs4                49152  2
ext4                  733184  1
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  118784  1 ext4
crc32c_generic         16384  0
fscrypto               32768  1 ext4
ecb                    16384  0
hid_generic            16384  0
usbhid                 57344  0
hid                   139264  2 usbhid,hid_generic
sr_mod                 28672  0
cdrom                  69632  1 sr_mod
sd_mod                 53248  3
ata_generic            16384  0
crc32c_intel           24576  2
ehci_pci               16384  0
uhci_hcd               49152  0
ehci_hcd               94208  1 ehci_pci
aesni_intel           200704  0
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
psmouse               172032  0
vmw_pvscsi             28672  0
vmxnet3                65536  0
ahci                   40960  2
libahci                40960  1 ahci
ata_piix               36864  0
usbcore               290816  8 usbserial,ehci_pci,usbhid,cp210x,ehci_hcd,uhci_hcd,hb_rf_usb
libata                274432  4 ata_piix,libahci,ahci,ata_generic
usb_common             16384  1 usbcore
i2c_piix4              24576  0
scsi_mod              249856  5 vmw_pvscsi,sd_mod,libata,sg,sr_mod
Ja ist, aber not used. Sollte das so sein?


Das einzige was im dmesg auffaellig ist:

Code: Alles auswählen

[    3.933488] generic_raw_uart: loading out-of-tree module taints kernel.
[    3.933525] generic_raw_uart: module verification failed: signature and/or required key missing - tainting kernel
Muesste aber vom selbst kompilierten Kernelmodul kommen und lsmod zeigt es auch als geladen an.

Und dann ist da noch cp210x.
Das kenn ich vom HMIP Stick. Muss ich da vielleicht was reinladen alla:
sh -c 'echo xxxx xxxx > /sys/bus/usb-serial/drivers/cp210x/new_id' um ein Serial device zu erzeugen?

Benutzeravatar
deimos
Beiträge: 5383
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 949 Mal
Kontaktdaten:

Re: HB-RF-USB Implentierung

Beitrag von deimos » 08.02.2019, 12:52

Hi,

ok, ich formuliere um: Was kommt bei dmesg zu dem Zeitpunkt, wenn du den multimacd startest und die ioctl Warnungen kommen.

Mit dem cp210x brauchst du nichts machen, auf der Platine ist ein FT232RL. Und mit dem kannst du ja auch einwandfrei kommunizieren.

Viele Grüße
Alex

quickmic
Beiträge: 518
Registriert: 20.01.2011, 14:39
Hat sich bedankt: 5 Mal
Danksagung erhalten: 4 Mal

Re: HB-RF-USB Implentierung

Beitrag von quickmic » 08.02.2019, 12:58

Gar nichts.

Code: Alles auswählen

[    5.092328] random: 7 urandom warning(s) missed due to ratelimiting
Ist und bleibt der letzte Eintrag.

Benutzeravatar
deimos
Beiträge: 5383
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 949 Mal
Kontaktdaten:

Re: HB-RF-USB Implentierung

Beitrag von deimos » 08.02.2019, 13:38

Hi,

und wie sieht deine multimac.conf aus?

Viele Grüße
Alex

Benutzeravatar
deimos
Beiträge: 5383
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 949 Mal
Kontaktdaten:

Re: HB-RF-USB Implentierung

Beitrag von deimos » 08.02.2019, 13:40

Hi,

und was auch noch auffällig ist: Du machst keinen Reset vom Funkmodul.

Viele Grüße
Alex

quickmic
Beiträge: 518
Registriert: 20.01.2011, 14:39
Hat sich bedankt: 5 Mal
Danksagung erhalten: 4 Mal

Re: HB-RF-USB Implentierung

Beitrag von quickmic » 08.02.2019, 13:48

reset hatte ich schon bei anderen versuchen mehrfach getestet.
Ich probiers aber nochmal.

die config schaut im moment so aus:

Code: Alles auswählen

#Cuse Device Name = ttyS0
Log Level = 0
Log Identifier = multimac
Log Destination = Syslog
HmIP Cmdline Pattern = */crRFD*
Bidcos Cmdline Pattern = *rfd -c*
Transparent Cmdline Pattern = *update*
Bidcos Exe Pattern = */bin/rfd
Default Subsystem = HmIP
Loop Master Device = /dev/eq3loop
Loop Slave Device Bidcos = mmd_bidcos
Loop Slave Device HmIP = mmd_hmip

quickmic
Beiträge: 518
Registriert: 20.01.2011, 14:39
Hat sich bedankt: 5 Mal
Danksagung erhalten: 4 Mal

Re: HB-RF-USB Implentierung

Beitrag von quickmic » 08.02.2019, 13:53

jetzt ist im dmesg der letzte Eintrag der Reset:

Code: Alles auswählen

...
[    3.946252] vmxnet3 0000:0b:00.0 ens192: intr type 3, mode 0, 3 vectors allocated
[    3.947090] vmxnet3 0000:0b:00.0 ens192: NIC Link is Up 10000 Mbps
[    3.983947] usbcore: registered new interface driver hb_rf_usb
[    5.688759] random: crng init done
[    5.688762] random: 7 urandom warning(s) missed due to ratelimiting
[ 2345.332231] raw-uart raw-uart: Reset radio module
multimac selber Fehler:

Code: Alles auswählen

root@CCUx86:~# /bin/multimacd -f /etc/config/multimacd.conf -l 0 -c
2019/02/08 13:49:12.022 <Debug> FastMacResponder::ThreadFunction() started Id=2730
2019/02/08 13:49:12.022 <Warning> UpstreamCharConnection could not create slave device mmd_hmip: Inappropriate ioctl for device
2019/02/08 13:49:12.022 <Debug> Subsystem 1 ThreadFunction() started. Id=2733
2019/02/08 13:49:12.022 <Debug> MacController::ThreadFunction() started. Id=2731
2019/02/08 13:49:12.022 <Warning> UpstreamCharConnection could not create slave device mmd_bidcos: Inappropriate ioctl for device
2019/02/08 13:49:12.023 <Debug> Subsystem 2 ThreadFunction() started. Id=2734
2019/02/08 13:49:12.023 <Debug> SubsystemManager::ThreadFunction() started. Id=2732
2019/02/08 13:49:12.023 <Debug> C<: #0 COMMON IdentifyRequest
2019/02/08 13:49:12.023 <Debug> C< @2355633: bin:FD 00 03 FE 00 01 14 1E
2019/02/08 13:49:12.787 <Debug> C> @2356397: #40 LLMAC RX @ 4385ms -81dBm 48 86 70 17 44 54 00 00 00 80 BB 2D
2019/02/08 13:49:12.787 <Debug> C> @2356397: #13 HMIP CMD=07  51 10 00 8E 1E 33 E9 1E 33 E9 00 00 00 00 00 00 00 00 85 0D 00 51 06 00
2019/02/08 13:49:12.787 <Debug> CRC error. Calculated 0x8C42.
2019/02/08 13:49:12.787 <Debug> C> @2356398: #42 LLMAC RX @16153ms -54dBm 37 86 70 17 28 FF 00 00 00 00 C3 2C
2019/02/08 13:49:12.787 <Debug> CRC error. Calculated 0x3D5B.
2019/02/08 13:49:12.787 <Debug> C> @2356398: #44 LLMAC RX @ 3385ms -54dBm 37 A2 58 17 28 FF 18 67 94 00 00
2019/02/08 13:49:12.787 <Debug> CRC error. Calculated 0xD594.
2019/02/08 13:49:12.787 <Debug> C> @2356398: #46 LLMAC RX @ 4457ms -47dBm 4D 86 70 19 CA A7 00 00 00 00 65 45
2019/02/08 13:49:12.787 <Debug> C> @2356398: #47 LLMAC RX @10346ms -61dBm BF 86 10 35 47 33 00 00 00 0A 88 BF 0E 00 40
2019/02/08 13:49:12.789 <Debug> Unexpected start of frame after 16 bytes
2019/02/08 13:49:12.790 <Debug> C> @2356400: #0 COMMON Response Ack 48 4D 49 50 5F 54 52 58 5F 42 6C
2019/02/08 13:49:12.790 <Info> Copro Bootloader detected. Starting application.
2019/02/08 13:49:12.790 <Debug> C<: #1 COMMON StartApp
2019/02/08 13:49:12.790 <Debug> C< @2356400: bin:FD 00 03 FE 01 03 12 12
2019/02/08 13:49:13.025 <Debug> C> @2356635: #1 COMMON Response Ack
2019/02/08 13:49:13.545 <Debug> C> @2357155: #1 COMMON Identify DualCoPro_App
2019/02/08 13:49:13.545 <Info> Copro application running.
2019/02/08 13:49:13.545 <Debug> C<: #2 TRX GetVersion
2019/02/08 13:49:13.545 <Debug> C< @2357155: bin:FD 00 03 01 02 02 94 1B
2019/02/08 13:49:13.651 <Debug> C> @2357262: #2 TRX Response Ack 04 00 10 01 00 01 01 28 00
2019/02/08 13:49:13.652 <Info> Vapp=040010 Vbl=010001 Vhmos=012800
2019/02/08 13:49:13.652 <Debug> C<: #3 COMMON GetSGTIN
2019/02/08 13:49:13.652 <Debug> C< @2357262: bin:FD 00 03 FE 03 04 1E 00
2019/02/08 13:49:13.659 <Debug> C> @2357269: #3 COMMON Response Ack 30 14 F7 11 A0 00 1F 58 A9 A7 16 AF
2019/02/08 13:49:13.659 <Info> SGTIN=30 14 F7 11 A0 00 1F 58 A9 A7 16 AF
2019/02/08 13:49:13.659 <Debug> C<: #4 LLMAC GetDefaultRfAddress
2019/02/08 13:49:13.659 <Debug> C< @2357269: bin:FD 00 03 03 04 08 00 0C
2019/02/08 13:49:13.666 <Debug> C> @2357276: #4 LLMAC Response ACK @255: 00 FF FF
2019/02/08 13:49:13.666 <Info> RF address=65535
2019/02/08 13:49:13.666 <Debug> C<: #5 LLMAC GetSerialNumber
2019/02/08 13:49:13.666 <Debug> C< @2357276: bin:FD 00 03 03 05 07 86 2D
2019/02/08 13:49:13.674 <Debug> C> @2357284: #5 LLMAC Response ACK @20549: 50 45 51 31 39 34 35 32 36 33
2019/02/08 13:49:13.674 <Info> Serial Number=PEQ1945263
2019/02/08 13:49:13.674 <Debug> C<: #6 LLMAC GetTimestamp
2019/02/08 13:49:13.674 <Debug> C< @2357284: bin:FD 00 03 03 06 02 8C 33
2019/02/08 13:49:13.681 <Debug> C> @2357291: #6 LLMAC Response ACK @650: 02 8A
2019/02/08 13:49:13.681 <Info> Timer=  650
2019/02/08 13:49:17.811 <Debug> C> @2361421: #0 LLMAC RX @ 4778ms -81dBm 49 A2 58 17 44 54 18 63 0D 00 F1
2019/02/08 13:49:17.811 <Debug> Bidcos RX: #49[BiDi|Ren|WMup] 174454->18630D HvacSetpoint: 00 F1
2019/02/08 13:49:17.811 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:49:23.680 <Debug> C<: #7 TRX GetDutyCycle
2019/02/08 13:49:23.681 <Debug> C< @2367291: bin:FD 00 03 01 07 03 0A 1E
2019/02/08 13:49:23.788 <Debug> C> @2367398: #7 TRX Response Ack 00
2019/02/08 13:49:23.788 <Debug> SubsystemBidcos::CheckDutyCycleEventThreshold( 0.0, 0.0 ) = 0
2019/02/08 13:49:28.328 <Debug> C> @2371938: #1 LLMAC RX @15294ms -55dBm 38 86 70 17 28 FF 00 00 00 00 C3 2C
2019/02/08 13:49:28.328 <Debug> Bidcos RX: #38[BC|Ren|WMup] 1728FF->000000 WeatherData: 00 C3 2C
2019/02/08 13:49:28.328 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:49:33.681 <Debug> C<: #8 TRX GetDutyCycle
2019/02/08 13:49:33.681 <Debug> C< @2377291: bin:FD 00 03 01 08 03 28 1E
2019/02/08 13:49:33.687 <Debug> C> @2377297: #8 TRX Response Ack 00
2019/02/08 13:49:33.687 <Debug> SubsystemBidcos::CheckDutyCycleEventThreshold( 0.0, 0.0 ) = 0
2019/02/08 13:49:39.099 <Debug> C> @2382709: #2 LLMAC RX @26062ms -56dBm 5E 84 70 F1 D0 02 1D 87 D9 00 67 27 22 44 01 42 33 12 DE 00 5E 00 00 AE 00 00
2019/02/08 13:49:39.099 <Debug> Bidcos RX: #5E[BC|Ren] F1D002->1D87D9 WeatherData: 00 67 27 22 44 01 42 33 12 DE 00 5E 00 00 AE 00 00
2019/02/08 13:49:39.099 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:49:43.681 <Debug> C<: #9 TRX GetDutyCycle
2019/02/08 13:49:43.681 <Debug> C< @2387291: bin:FD 00 03 01 09 03 AE 1D
2019/02/08 13:49:43.787 <Debug> C> @2387397: #9 TRX Response Ack 00
2019/02/08 13:49:43.787 <Debug> SubsystemBidcos::CheckDutyCycleEventThreshold( 0.0, 0.0 ) = 0
2019/02/08 13:49:48.327 <Debug> C> @2391937: #3 LLMAC RX @ 2526ms -55dBm 38 A2 58 17 28 FF 18 67 94 00 00
2019/02/08 13:49:48.327 <Debug> Bidcos RX: #38[BiDi|Ren|WMup] 1728FF->186794 HvacSetpoint: 00 00
2019/02/08 13:49:48.327 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:49:48.462 <Debug> C> @2392072: #4 LLMAC RX @ 2659ms -62dBm 38 82 02 18 67 94 17 28 FF 01 01 00 00 35
2019/02/08 13:49:48.462 <Debug> Bidcos RX: #38[Ren|WMup] 186794->1728FF Ack: 01 01 00 00 35
2019/02/08 13:49:48.462 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:49:53.163 <Debug> C> @2396773: #5 LLMAC RX @ 7361ms -47dBm 4E 86 70 19 CA A7 00 00 00 00 64 45
2019/02/08 13:49:53.163 <Debug> Bidcos RX: #4E[BC|Ren|WMup] 19CAA7->000000 WeatherData: 00 64 45
2019/02/08 13:49:53.163 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:49:53.681 <Debug> C<: #10 TRX GetDutyCycle
2019/02/08 13:49:53.682 <Debug> C< @2397292: bin:FD 00 03 01 0A 03 A4 1D
2019/02/08 13:49:53.786 <Debug> C> @2397396: #10 TRX Response Ack 00
2019/02/08 13:49:53.786 <Debug> SubsystemBidcos::CheckDutyCycleEventThreshold( 0.0, 0.0 ) = 0
2019/02/08 13:49:58.788 <Debug> C> @2402398: #6 LLMAC RX @12986ms -63dBm C0 86 10 35 47 33 00 00 00 0A 88 BF 0E 00 40
2019/02/08 13:49:58.788 <Debug> Bidcos RX: #C0[BC|Ren|WMup] 354733->000000 Info: 0A 88 BF 0E 00 40
2019/02/08 13:49:58.788 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:50:01.092 <Debug> C> @2404702: #7 LLMAC RX @15290ms -98dBm 85 84 5E 4A 32 72 00 00 00 89 45 8A 00 00 00 00 00 08 E0 03
2019/02/08 13:50:01.093 <Debug> Bidcos RX: #85[BC|Ren] 4A3272->000000 EnergyCyclic: 89 45 8A 00 00 00 00 00 08 E0 03
2019/02/08 13:50:01.093 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:50:03.682 <Debug> C<: #11 TRX GetDutyCycle
2019/02/08 13:50:03.682 <Debug> C< @2407292: bin:FD 00 03 01 0B 03 22 1E
2019/02/08 13:50:03.787 <Debug> C> @2407397: #11 TRX Response Ack 00
2019/02/08 13:50:03.787 <Debug> SubsystemBidcos::CheckDutyCycleEventThreshold( 0.0, 0.0 ) = 0
2019/02/08 13:50:13.682 <Debug> C<: #12 TRX GetDutyCycle
2019/02/08 13:50:13.682 <Debug> C< @2417292: bin:FD 00 03 01 0C 03 B0 1D
2019/02/08 13:50:13.788 <Debug> C> @2417398: #12 TRX Response Ack 00
2019/02/08 13:50:13.788 <Debug> SubsystemBidcos::CheckDutyCycleEventThreshold( 0.0, 0.0 ) = 0
2019/02/08 13:50:15.460 <Debug> C> @2419070: #8 LLMAC RX @29658ms -58dBm B5 86 70 18 6B D8 00 00 00 00 CC 29
2019/02/08 13:50:15.460 <Debug> Bidcos RX: #B5[BC|Ren|WMup] 186BD8->000000 WeatherData: 00 CC 29
2019/02/08 13:50:15.460 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:50:16.275 <Debug> C> @2419885: #9 LLMAC RX @30472ms -70dBm 47 86 70 18 56 B2 00 00 00 00 BA 27
2019/02/08 13:50:16.275 <Debug> Bidcos RX: #47[BC|Ren|WMup] 1856B2->000000 WeatherData: 00 BA 27
2019/02/08 13:50:16.275 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:50:23.682 <Debug> C<: #13 TRX GetDutyCycle
2019/02/08 13:50:23.682 <Debug> C< @2427292: bin:FD 00 03 01 0D 03 36 1E
2019/02/08 13:50:23.688 <Debug> C> @2427298: #13 TRX Response Ack 00
2019/02/08 13:50:23.688 <Debug> SubsystemBidcos::CheckDutyCycleEventThreshold( 0.0, 0.0 ) = 0
2019/02/08 13:50:33.682 <Debug> C<: #14 TRX GetDutyCycle
2019/02/08 13:50:33.682 <Debug> C< @2437292: bin:FD 00 03 01 0E 03 3C 1E
2019/02/08 13:50:33.787 <Debug> C> @2437397: #14 TRX Response Ack 00
2019/02/08 13:50:33.787 <Debug> SubsystemBidcos::CheckDutyCycleEventThreshold( 0.0, 0.0 ) = 0
2019/02/08 13:50:35.461 <Debug> C> @2439071: #10 LLMAC RX @16890ms -57dBm B5 A2 58 18 6B D8 18 62 01 00 00
2019/02/08 13:50:35.461 <Debug> Bidcos RX: #B5[BiDi|Ren|WMup] 186BD8->186201 HvacSetpoint: 00 00
2019/02/08 13:50:35.461 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:50:35.589 <Debug> C> @2439199: #11 LLMAC RX @17018ms -54dBm B5 82 02 18 62 01 18 6B D8 01 01 00 00 2D
2019/02/08 13:50:35.589 <Debug> Bidcos RX: #B5[Ren|WMup] 186201->186BD8 Ack: 01 01 00 00 2D
2019/02/08 13:50:35.589 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:50:39.326 <Debug> C> @2442936: #12 LLMAC RX @20754ms -58dBm 5F 84 70 F1 D0 02 1D 87 D9 00 67 27 22 43 01 64 66 12 DE 00 81 00 00 DE 00 00
2019/02/08 13:50:39.326 <Debug> Bidcos RX: #5F[BC|Ren] F1D002->1D87D9 WeatherData: 00 67 27 22 43 01 64 66 12 DE 00 81 00 00 DE 00 00
2019/02/08 13:50:39.326 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs
2019/02/08 13:50:40.062 <Debug> C> @2443672: #13 LLMAC RX @21493ms -67dBm BC 86 5A 38 8B F0 00 00 00 88 BF 2D
2019/02/08 13:50:40.063 <Debug> Bidcos RX: #BC[BC|Ren|WMup] 388BF0->000000 HvacTemperatureInfo: 88 BF 2D
2019/02/08 13:50:40.063 <Debug> GetAckActionForIncomingTelegram(): Unknown peer, AckAction_NotForUs

Im Moment stochere ich nurnoch rum wo das Problem liegen koennte.

Kernelmodule kompilieren auch sauber durch, paar Warnung halt...

Code: Alles auswählen

root@CCUx86:/opt/kernelmodules# make
make -C /lib/modules/4.19.0-0.bpo.1-amd64/build M=/opt/kernelmodules modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-0.bpo.1-amd64'
  CC [M]  /opt/kernelmodules/eq3_char_loop.o
In file included from /usr/src/linux-headers-4.19.0-0.bpo.1-common/include/linux/printk.h:7:0,
                 from /usr/src/linux-headers-4.19.0-0.bpo.1-common/include/linux/kernel.h:14,
                 from /opt/kernelmodules/eq3_char_loop.c:23:
/opt/kernelmodules/eq3_char_loop.c: In function 'eq3loop_write_master':
/usr/src/linux-headers-4.19.0-0.bpo.1-common/include/linux/kern_levels.h:5:18: warning: format '%i' expects argument of type 'int', but argument 3 has type 'ssize_t {aka long int}' [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
/usr/src/linux-headers-4.19.0-0.bpo.1-common/include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^~~~~~~~
/opt/kernelmodules/eq3_char_loop.c:356:11: note: in expansion of macro 'KERN_ERR'
   printk( KERN_ERR EQ3LOOP_DRIVER_NAME ": eq3loop_write_master() %s: not enought space in the buffers. free space = %i, required space = %i", channel->name,count_to_end,count );
           ^~~~~~~~
/usr/src/linux-headers-4.19.0-0.bpo.1-common/include/linux/kern_levels.h:5:18: warning: format '%i' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
/usr/src/linux-headers-4.19.0-0.bpo.1-common/include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^~~~~~~~
/opt/kernelmodules/eq3_char_loop.c:356:11: note: in expansion of macro 'KERN_ERR'
   printk( KERN_ERR EQ3LOOP_DRIVER_NAME ": eq3loop_write_master() %s: not enought space in the buffers. free space = %i, required space = %i", channel->name,count_to_end,count );
           ^~~~~~~~
  CC [M]  /opt/kernelmodules/plat_eq3ccu2.o
  CC [M]  /opt/kernelmodules/generic_raw_uart.o
  CC [M]  /opt/kernelmodules/pl011_raw_uart.o
  CC [M]  /opt/kernelmodules/dw_apb_raw_uart.o
  CC [M]  /opt/kernelmodules/meson_raw_uart.o
  CC [M]  /opt/kernelmodules/fake_hmrf.o
/opt/kernelmodules/fake_hmrf.c: In function 'fake_hmrf_write':
/opt/kernelmodules/fake_hmrf.c:266:1: warning: the frame size of 2080 bytes is larger than 2048 bytes [-Wframe-larger-than=]
 }
 ^
  CC [M]  /opt/kernelmodules/rpi_rf_mod_led.o
  CC [M]  /opt/kernelmodules/dummy_rx8130.o
  CC [M]  /opt/kernelmodules/led_trigger_timer.o
  CC [M]  /opt/kernelmodules/hb_rf_usb.o
  CC [M]  /opt/kernelmodules/rtc-rx8130.o
  Building modules, stage 2.
  MODPOST 12 modules
  CC      /opt/kernelmodules/dummy_rx8130.mod.o
  LD [M]  /opt/kernelmodules/dummy_rx8130.ko
  CC      /opt/kernelmodules/dw_apb_raw_uart.mod.o
  LD [M]  /opt/kernelmodules/dw_apb_raw_uart.ko
  CC      /opt/kernelmodules/eq3_char_loop.mod.o
  LD [M]  /opt/kernelmodules/eq3_char_loop.ko
  CC      /opt/kernelmodules/fake_hmrf.mod.o
  LD [M]  /opt/kernelmodules/fake_hmrf.ko
  CC      /opt/kernelmodules/generic_raw_uart.mod.o
  LD [M]  /opt/kernelmodules/generic_raw_uart.ko
  CC      /opt/kernelmodules/hb_rf_usb.mod.o
  LD [M]  /opt/kernelmodules/hb_rf_usb.ko
  CC      /opt/kernelmodules/led_trigger_timer.mod.o
  LD [M]  /opt/kernelmodules/led_trigger_timer.ko
  CC      /opt/kernelmodules/meson_raw_uart.mod.o
  LD [M]  /opt/kernelmodules/meson_raw_uart.ko
  CC      /opt/kernelmodules/pl011_raw_uart.mod.o
  LD [M]  /opt/kernelmodules/pl011_raw_uart.ko
  CC      /opt/kernelmodules/plat_eq3ccu2.mod.o
  LD [M]  /opt/kernelmodules/plat_eq3ccu2.ko
  CC      /opt/kernelmodules/rpi_rf_mod_led.mod.o
  LD [M]  /opt/kernelmodules/rpi_rf_mod_led.ko
  CC      /opt/kernelmodules/rtc-rx8130.mod.o
  LD [M]  /opt/kernelmodules/rtc-rx8130.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-0.bpo.1-amd64'
root@CCUx86:/opt/kernelmodules#

Mit welchem Kernel hast du auf x64 getestet?

Benutzeravatar
deimos
Beiträge: 5383
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 949 Mal
Kontaktdaten:

Re: HB-RF-USB Implentierung

Beitrag von deimos » 08.02.2019, 14:04

Hi,

in der multimacd.conf habe ich in der ersten Zeile noch:

Code: Alles auswählen

Coprocessor Device Path = /dev/raw-uart
Kernel habe ich den 4.15:

Code: Alles auswählen

Linux dev 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Auf ARM Geräten habe ich aber auch den 4.19 und 4.20 im Einsatz, ein allgemeines Problem aufgrund der Kernel Version würde ich daher tendentiell ausschließen.

Viele Grüße
Alex

Antworten

Zurück zu „x86-CCU“