Entwicklung SIGNALDuino Empfänger Firm- und Hardware V4 für Maple Mini und ESP32

Begonnen von Ralf9, 13 Dezember 2019, 12:48:26

Vorheriges Thema - Nächstes Thema

juergs

Habe es unter VSCode, Platformio und dem MSC-Bootloader auch probiert.
Bei 191 zeichen ist Schluß, allerdings weder Reset noch USB wegnehmen funktioniert dann noch.
Muss den Maple praktisch neu mit STLINK programmieren, dass es wieder funktioniert.
Krasser Fehler!

Zitat[env:maple_mini]
; all options for MAPLE_Mini
; extra_scripts = pre:custom_hwids.py                           ; to write USB PID for device | needed to right reconnected
; platform = ststm32                                            ; Stable version
platform = https://github.com/platformio/platform-ststm32.git   ; Development version V13 (!)
board = maple_mini_origin
board_build.mcu = stm32f103cbt6                                 ; https://docs.platformio.org/en/latest/projectconf/section_env_platform.html#board-build-mcu
board_build.core = STM32Duino                                   ; https://docs.platformio.org/en/latest/platforms/ststm32.html#configuration
framework = arduino
build_flags=
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC  ; CDC (generic Serial supersede U(S)ART)
-D USBCON                            ; !! work only with maple_mini bootloader v1.0 !!
-D USBD_PID=0x0004                   ; Device
-D USBD_VID=0x0483                   ; Serielles USB-Geraet (COMxx)
-D USB_MANUFACTURER="STMicroelectronics"
-D USB_PRODUCT="\"Maple\""

; Windows, example
; debug_port = COM4
; monitor_port = COM4
;upload_port = COM18
upload_protocol = stlink
;upload_protocol = dfu

Ralf9

Hallo Reinhard,

hast Du bei Deinem Lacrosse Sensor noch Aussetzer?

@nagelreo hat ein ähliches Problem
Zitat von: nagelreo am 24 April 2021, 17:17:06
Die sporadischen "Aussetzer" beim Empfang vom TFA 30.3155.WD treten immer noch auf, in den letzten 3 Wochen 14 mal.

Ich hab mir dafür was überlegt
Dafür müsste ich wissen, ob es reicht, wenn mit dem folgenden beiden raw-Befehlen der Empfang kurz deaktiviert wird

get sduino raw WS36
Rückmeldung:  cmdStrobeReg 36 chipStatus 1 delay2 0


get sduino raw WS34
Rückmeldung: cmdStrobeReg 34 chipStatus 0 delay2 1


mit "get sduino raw WS3D" kann der cc101 Status abgefragt werden
0 - IDLE
1 - Empfang


Ich würde dann einen weitere Konfigvariable einbauen z.B. ccRXTimeout (1 wären dann 10 Min und 144 wären 1 Tag)
Die Variable wird dann alle 10 Min runtergezählt und bei 0 wird dann WS36 und WS34 ausgeführt.
Bei jeder empfangenen Nachricht wird die Variable wieder auf den Wert von ccRXTimeout gesetzt.

Gruß Ralf
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

Reinhard.M

Guten Morgen Ralf,
schön von dir zu hören :) Ich habe hier keine weiteren Aussetzer beobachtet. Zumindest ist mir nichts mehr aufgefallen. Allerdings bin ich weiterhin oftmals mit kleiner -90 am Empfangslimit. Da fehlen dann schon Mal ein paar Stunden Daten von dem ein oder anderen Modul.

Gruß Reinhard

juergs

Hallo Ralf,

habe dies Version Maple_cul_USB_412dev210205.bin auf Ranseyers 4fach-MapleCUL installiert.
Neuer MapleMini mit MSC-Bootloader mit dieser letzten Version: https://github.com/Ralf9/SIGNALDuino/releases/tag/V4.1.2-dev210205

Hier mein Init über ein Serial-Tool:

ZitatWatchdog enabled
Reading values from eeprom
CCInit
detect B: Partn=0 Ver=0x14
Starting timerjob
rxB=1
MS;P1=-2076;P2=552;P3=-4119;P4=-9091;P5=412;D=2423212153532121212121232321212121212121232121212123232123212123232121232123;CP=2;SP=4;R=3;e;b72;m0;
MS;P1=-2076;P2=552;P3=-4119;P4=-9091;P5=412;P6=32001;P7=-3069;D=2423515153232121212121232321212121212121232121212123232123212123232121236723;CP=2;SP=4;R=3;e;m1;
MS;P1=-2076;P2=552;P3=-4119;P4=-9091;P5=412;P6=32001;P7=-3069;D=2423212123232121212121232321212121212121232121212123232123212123232121232123;CP=2;SP=4;R=3;e;m2;
MS;P1=-2076;P2=552;P3=-4119;P4=-9091;P5=412;P6=32001;P7=-3069;D=2423212123232121212121232321515151212121232121212123232123212123232121232123;CP=2;SP=4;R=3;e;m3;
MU;P0=90;P1=-1039;P2=498;P4=-1947;P5=-4004;CP=2;R=219;D=01212121212424212421212124242424242421212124242421242521212121212424212421212121212124242124212121242424242424212121242424212424;e;
MS;P0=-2059;P1=432;P2=-1043;P3=-4017;D=13121212121210101210121212121212101012101212121010101010101212121010101210;CP=1;SP=3;R=219;e;b73;m0;
MS;P0=-2059;P1=432;P2=-1043;P3=-4017;D=13121212121210101210121212121212101012101212121010101010101212121010101210;CP=1;SP=3;R=219;Q;e;m1;
MS;P0=-2059;P1=432;P2=-1043;P3=-4017;P5=178;D=131212121212101012101212121212121010121012121210101010101012121210101012105;CP=1;SP=3;R=219;e;m2;
MU;P0=226;P1=-3993;P2=473;P3=-1073;P4=-2015;P5=113;P6=-114;CP=2;R=219;D=0123232323232424232423232323232324242324232323242424242424232323242356;e;
MU;P0=296;P1=-1022;P2=471;P3=-2007;P4=-1359;CP=2;R=218;D=01212323212321212121212123232123212121232323232323212121232324;e;
MS;P1=464;P2=-1052;P3=-2017;P4=-4036;D=14121212121213131213121212121212131312131212121313131313131212121313131213;CP=1;SP=4;R=218;e;b5;m0;
MS;P1=464;P2=-1052;P3=-2017;P4=-4036;D=1412121212121313121312121212121213131213121212131313131313121212131313121;CP=1;SP=4;R=218;Q;e;m1;
MS;P1=223;P2=-5524;P3=109;P4=-2301;P5=149;P6=-1397;D=123454141654141654163616141616341636141436141432;CP=1;SP=2;R=218;e;
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: B0*) - compiled at Feb  6 2021 00:26:38
MU;P0=-25693;P1=1304;P2=-1071;P3=498;CP=3;R=224;D=01212121232123212121212121212121212321212121212123232323232323232121212123232323232123230121212123212321212121212121212121232121212121212323232323232323212121212323232323212323;e;
MC;LL=-1081;LH=872;SL=-574;SH=396;D=A8DDF41ACE7DF7916AB5E94;C=487;L=90;R=220;s1;b1;
MC;LL=-1064;LH=868;SL=-604;SH=387;D=A8DDF41AEE7DF7916AB4FE4;C=487;L=90;R=221;s1;b1;
MC;LL=-1079;LH=858;SL=-590;SH=390;D=A0D6F3EFBC8B55AB22;C=486;L=71;R=220;s3;b2;
MS;P2=-3952;P3=464;P4=-989;P5=-1994;D=32343434353434353435343434343434353435343434343534353535353434343434343434;CP=3;SP=2;R=221;e;b75;m0;
MS;P2=-3952;P3=464;P4=-989;P5=-1994;D=32343434353434353435343434343434353435343434343534353535353434343434343434;CP=3;SP=2;R=221;Q;e;m1;
MS;P2=-3952;P3=464;P4=-989;P5=-1994;D=32343434353434353435343434343434353435343434343534353535353434343434343434;CP=3;SP=2;R=221;Q;e;m2;
MS;P2=-3952;P3=464;P4=-989;P5=-1994;D=32343434353434353435343434343434353435343434343534353535353434343434343434;CP=3;SP=2;R=221;Q;e;m3;
MU;P0=226;P1=-2007;P2=440;P3=-992;CP=2;R=220;D=01232123232323232321232123232323212321212121232323232323;e;
MU;P0=282;P1=-1010;P2=446;P3=-3960;P4=187;P5=-91;P6=136;P7=-2097;CP=2;R=220;D=0121212123210145612721212721072121212121;e;
MU;P0=-1047;P1=448;P2=-2009;P3=307;P4=179;P5=-4217;CP=1;R=216;D=01210101030121012121232101030101040301035;e;
MU;P0=112;P1=-1998;P2=448;P3=-1026;P4=315;CP=2;R=219;D=0123232323232321432123232323212321212121230;e;
MU;P0=91;P1=-1023;P2=411;P3=-1991;P5=-4008;CP=2;R=219;D=0121232123232323212121212121212125212121;e;
MU;P0=-139;P1=126;P2=-2037;P3=419;P4=-1007;CP=3;R=217;D=012343432343234343434343432343234343434323432321;e;
SENT: eA
ccFactoryReset done
r=B b=0 ccmode=0 sync=D391 ccconf=10B07157C43023B900070018146C070090 boffs=0000
MU;P0=-30236;P1=4164;P2=-789;P3=-4827;P4=948;P5=3138;P6=220;CP=4;R=217;D=0121343534353535353534343434353434343435353535353435353434343536;e;
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: B0*) - compiled at Feb  6 2021 00:26:38
MU;P0=234;P1=460;P2=1243;P3=-28323;P4=-21967;P5=-342;P6=-1101;P7=-202;CP=1;R=233;D=706162616261626161626262626162616262616161626262626162616262626131405;p;
MU;P0=-1103;P1=454;P2=-222;P3=-112;P4=184;P5=1244;CP=1;R=235;D=01213401050105010501010505050501050105050101010505050501050105050501;e;
MU;P0=-117;P1=225;P2=-1105;P3=456;P4=1247;P5=-26177;P6=302;CP=3;R=232;D=0123242423242324232423242324242324242324242424242324242324242323232424565;e;
MU;P0=-314;P1=243;P2=-1112;P3=1233;P4=452;CP=3;R=232;D=01012123242324232423232423232423232323232423232423232424242323;e;
SENT: e
ccFactoryReset done
r=B b=0 ccmode=0 sync=D391 ccconf=10B07157C43023B900070018146C070090 boffs=0000
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: B0*) - compiled at Feb  6 2021 00:26:38
MS;P1=539;P2=-9105;P3=-4138;P4=-2082;D=1213141413131414141414131314141414141414131414141413131413141413131414131413;CP=1;SP=2;R=18;e;m0;
MS;P0=-6325;P1=539;P2=-9105;P3=-4138;P4=-2082;P5=405;D=12501413131414141414131314141414141414131414141413131413141413131414131413;CP=1;SP=2;R=18;e;m1;
MS;P1=539;P2=-9105;P3=-4138;P4=-2082;P5=405;P6=230;D=12135363531414141414131314141414141414131414141413131413141413131414131413;CP=1;SP=2;R=18;e;m2;
MS;P1=539;P2=-9105;P3=-4138;P4=-2082;P5=405;P6=230;D=1213141413531414141414131314141414141414131414141413131413141413131414131413;CP=1;SP=2;R=18;e;m3;
MS;P1=-2081;P2=521;P3=-4143;P4=-9106;P5=-6856;D=24252123232121212121232321212121212121232121212123232123212123232121232123;CP=2;SP=4;R=19;e;b72;m0;
MU;P0=-7289;P1=532;P2=-2089;P3=-4135;CP=1;R=17;D=0121313121212121213131212121212121213121212121313121312121313121213121;e;
MC;LL=-1068;LH=901;SL=-569;SH=403;D=A8DDF41AC985F7916ACA6C4;C=490;L=90;R=222;s1;b1;
MC;LL=-1059;LH=898;SL=-566;SH=400;D=A8DDF41AE985F7916ACB7B4;C=487;L=90;R=221;s1;b1;
MC;LL=-1059;LH=892;SL=-567;SH=410;D=A8DDF41AD985F7916ACAE14;C=487;L=90;R=222;s1;b1;
SENT: **V
MU;P0=-7893;P1=911;P2=-1509;P3=199;P4=-21198;CP=3;R=73;D=01212121232123212121212123232323212321212123232323212121212121232123232323212121232321214121212123212321212121212323232321232121212323232321212121212123212323232321212123232121412121212321232121212121232323232123212121232323232121212121212321232323232121212323212141212121232123212121212123232323212321212123232323212121212121232123232323212121232321214121212123212321212121212323232321232121212323232321212121212123212323232321212123232121;e;
MU;P0=153;P1=-2031;P2=439;P3=-1050;P4=270;P5=-4050;CP=2;R=218;D=0121212321452323232323212123212323232323232121232123212323212121212123232321212123212523232323232121232123232323234;e;
MU;P0=176;P1=-2018;P2=449;P3=-1056;P4=-4027;CP=2;R=218;D=01212123232321212123212423232323232121230;e;
MU;P0=264;P1=-2030;P2=445;P3=-1058;P4=-4036;CP=2;R=218;D=012323232323232121232123212323212121212103232321212123212423230;e;
MS;P0=424;P1=-2072;P3=-1053;P4=320;P5=-4074;P6=205;D=05034303030301014301030303030303010103016301030301010101010303030101010301;CP=0;SP=5;R=219;e;b40;m0;
MU;P0=90;P1=-1071;P2=432;P3=-2057;P4=241;P5=-4088;P6=117;CP=2;R=219;D=0121212121232321232121212121212323412321232121232323232321212123232321232521216;e;
MU;P0=-1080;P1=415;P2=-2051;P4=204;P5=-112;P6=126;P7=-4088;CP=1;R=216;D=012121012101210101245621212121010101212124012171010101010126;e;
MU;P0=-130;P1=196;P2=-1059;P3=434;P4=-2054;P5=325;P6=-4047;CP=3;R=218;D=01234343454543252323434343234363232323232;e;
MU;P0=-1253;P1=205;P2=-210;P3=132;P4=-2201;P6=96;P7=-3801;CP=1;R=220;D=012341010341412341010301432343467626062141017;e;
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: B0*) - compiled at Feb  6 2021 00:26:38
MU;P0=-20227;P1=1330;P2=-1046;P3=530;P4=-28716;CP=3;R=225;D=01212121232123212121212121212121212321212121212123232323232323232121212123232323232123234121212123212321212121212121212121232121212121212323232323232323212121212323232323212323;e;
MU;P0=-269;P1=516;P2=-1002;P3=1512;P4=-1509;CP=1;R=236;D=01232321232123212321212321212121212121212121232321232121412121212121212123212323212121212321232323232321232123212321212321212121212121212121232321232121412121212121212123212323212121212321232323232321232123212321212321212121212121212121232321232121;e;
MU;P0=-16341;P1=4127;P2=-813;P3=-4801;P4=956;P5=3152;CP=4;R=217;D=01213435343535353535343434343534343434353535353534353435353535353535;e;
MU;P0=-31491;P1=4147;P2=-821;P3=-4812;P4=953;P5=3153;CP=4;R=217;D=0121343534353535353534343434353434343435353535353435343535353535353501213435343535353535343434343534343434353535353534353435353535353535;e;
MU;P0=-2745;P1=4116;P2=-837;P3=-4813;P4=957;P5=3166;CP=4;R=217;D=01213435343535353535343434343534343434353535353534353435353535353535;e;
MU;P0=-1543;P1=883;P2=161;P3=-21348;CP=2;R=72;D=010101010102020202010202010102020202010101010101010102020202010101020201023101010102010201010101010202020201020201010202020201010101010101010202020201010102020102310101010201020101010101020202020102020101020202020101010101010101020202020101010202010231010101020102010101010102020202010202010102020202010101010101010102020202010101020201023101010102010201010101010202020201020201010202020201010101010101010202020201010102020102;e;
MU;P0=-1091;P1=449;P2=-111;P3=-156;P4=134;P5=1259;P6=-28320;CP=1;R=237;D=0121340505050105010501010501050505050105010501050561;e;
MU;P0=201;P1=-1092;P2=101;P3=-139;P4=469;P6=1258;CP=4;R=238;D=01234341234341614161416141416141616161614161416141616;e;
MU;P0=1239;P1=-28088;P2=271;P3=-1105;P4=459;P5=-178;P7=-90;CP=4;R=238;D=34543474343030343030303030343030343030343434303012;e;
MU;P0=-1544;P1=162;P2=886;P4=-21335;CP=1;R=72;D=010101020101010201020102020202020102010201020102020202010102014202020201020102010101020101010102010101020102010202020202010201020102010202020201010201420202020102010201010102010101010201010102010201020202020201020102010201020202020101020142020202010201020101010201010101020101010201020102020202020102010201020102020202010102014202020201020102010101020101010102010101020102010202020202010201020102010202020201010201;e;
SENT: XQ
rxB=0
SENT: bS
Unsupported command
SENT: br
r=B b=0 rx=0 ccmode=0 sync=D391 ccconf=10B07157C43023B900070018146C070090 boffs=0000*
SENT: CREA0
detect A: Partn=0 Ver=0x04
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: Ai B0*) - compiled at Feb  6 2021 00:26:38
SENT: CREC2
detect C: Partn=0 Ver=0x04
SENT: CRED3
detect D: Partn=0 Ver=0x04
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: Ai B0* Ci Di) - compiled at Feb  6 2021 00:26:38
SENT: CREA0W
detect A: Partn=0 Ver=0x04
SENT: CREB1W
detect B: Partn=0 Ver=0x14
SENT: CREC2W
detect C: Partn=0 Ver=0x04
SENT: CRED3W
detect D: Partn=0 Ver=0x04
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: Ai Bi* Ci Di) - compiled at Feb  6 2021 00:26:38
SENT: CREB1W
detect B: Partn=0 Ver=0x14
SENT: XE

SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: Ai Bi* Ci Di) - compiled at Feb  6 2021 00:26:38
SENT: bA
Error! radio has no bank

SENT: bA0W
write set r=A b=0 ccmode=0 sync=D391 ccconf=10B07157C43023B900070018146C070090 boffs=0000
SENT: bA
switch to radio A
MU;P0=-826;P1=1533;P2=-1496;P3=-4994;P4=5506;P5=-2959;P6=2901;P7=2127;CP=1;R=223;D=12121212121212121212121343121212151212126215701;p;
MU;P0=3066;P1=-1068;P2=577;P3=1408;P4=-300;P6=-687;CP=2;R=227;D=01210134043101213631212121313131313121213121313;e;
MU;P0=3813;P1=1489;P2=-1039;P3=570;P4=-217;P5=-773;P6=1997;P7=-396;CP=1;R=228;D=1212121232123212121212121212321232323214351212670412;p;
MU;P0=-1970;P1=115;P2=-3943;P3=482;P4=-960;CP=3;R=221;D=01234343430343430343034343434343430343034343430343030303030343;e;
MS;P2=-974;P3=486;P4=-3931;P5=-1976;D=34323232353232353235323232323232353235323232353235353535353232323232323232;CP=3;SP=4;R=222;e;b13;m0;
MS;P2=-974;P3=486;P4=-3931;P5=-1976;D=34323232353232353235323232323232353235323232353235353535353232323232323232;CP=3;SP=4;R=222;Q;e;m1;
MS;P2=-974;P3=486;P4=-3931;P5=-1976;D=34323232353232353235323232323232353235323232353235353535353232323232323232;CP=3;SP=4;R=222;Q;e;m2;
MS;P2=-974;P3=486;P4=-3931;P5=-1976;D=34323232353232353235323232323232353235323232353235353535353232323232323232;CP=3;SP=4;R=222;Q;e;m3;
SENT: CW0001,0246,0302,042D,05D4,06FF,0700,0802,0D21,0E65,0F6A,1089,115C,1206,1322,14F8,1556,1700,1818,1916,1B43,1C68,1D91,2211,23E9,242A,2500,2611,3D00,3E03,404d,4131,425f,4349,4454,452b,4600
CW0001,0246,0302,042D,05D4,06FF,0700,0802,0D21,0E65,0F6A,1089,115C,1206,1322,14F8,1556,1700,1818,1916,1B43,1C68,1D91,2211,23E9,242A,2500,2611,3D00,3E03,404d,4131,425f,4349,4454,452b,4600 ok,N=0,ccmode=3
MN;D=9946733FE4AAAA0000196C84;R=230;
MN;D=C8020D066441099900290000;R=70;
MN;D=CC0605026441019800300000;R=71;
SENT: bC
Error! radio has no bank
SENT: bC2W
The bank 2 was not complete initialized, therefore the bank and radio is reseted to sduino defaults (raw e). ccFactoryReset done
SENT: eC
Init eeprom to defaults
detect B: Partn=0 Ver=0x14
SENT: bC2W
radio is not aktive!
SENT: bC
radio is not aktive!
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: B0*) - compiled at Feb  6 2021 00:26:38
SENT: e
ccFactoryReset done
r=B b=0 ccmode=0 sync=D391 ccconf=10B07157C43023B900070018146C070090 boffs=0000
MU;P0=-32001;P1=4157;P2=-786;P3=-4747;P4=985;P5=3189;P7=1974;CP=5;R=222;D=01213435343535353535343434343534343734353535353534353435353535353535;e;
MU;P0=-31473;P1=4171;P2=-762;P3=-4783;P4=990;P5=3181;CP=4;R=223;D=0121343534353535353534343434353434343435353535353435343535353535353501213435343535353535343434343534343434353535353534353435353535353535;e;
MU;P0=-9684;P1=4163;P2=-767;P3=-4767;P4=991;P5=3191;CP=4;R=226;D=01213435343535353535343434343534343434353535353534353435353535353535;e;
SENT: XQ
rxB=0
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: B0*) - compiled at Feb  6 2021 00:26:38
SENT: CREC2W
detect C: Partn=0 Ver=0x04
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: B0* Ci) - compiled at Feb  6 2021 00:26:38
SENT: e
ccFactoryReset done
r=B b=0 rx=0 ccmode=0 sync=D391 ccconf=10B07157C43023B900070018146C070090 boffs=0000
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: B0* Ci) - compiled at Feb  6 2021 00:26:38
SENT: ?S
CSccN= CSccmode= CSmcmbl= CSmscnt= CSfifolimit= CSmaxMuPrintx256= CSmaxMsgSizex256= CSfifolimitA= CSmaxMuPrintx256A= CSmaxMsgSizex256A= CSonlyRXB= CSmaxnumpat= CSmuthreshx256= CSmaxpulse=

Warum geht die Konfiguration (R: Ai Bi* Ci Di) verloren, nachdem ich für Modul A
Mode 1 - IT+ 17.241 kbps (LaCrosse)  -  ccN=0,  ccmode=3
konfiguriert habe?


SENT: CW0001,0246,0302,042D,05D4,06FF,0700,0802,0D21,0E65,0F6A,1089,115C,1206,1322,14F8,1556,1700,1818,1916,1B43,1C68,1D91,2211,23E9,242A,2500,2611,3D00,3E03,404d,4131,425f,4349,4454,452b,4600
( https://forum.fhem.de/index.php/topic,106594.0.html )

SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: Ai Bi* Ci Di) - compiled at Feb  6 2021 00:26:38
SENT: bA
Error! radio has no bank
SENT: bA0W
write set r=A b=0 ccmode=0 sync=D391 ccconf=10B07157C43023B900070018146C070090 boffs=0000
SENT: bA
switch to radio A


Ralf9

Bei Deinen raw Befehlen ist mir einiges aufgefallen was nicht geht:

ZitatSENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: Ai B0* Ci Di) - compiled at Feb  6 2021 00:26:38
SENT: CREA0W
Du bringst Da Befehle durcheinnander.

Mit "CREA" wird das Modul aktiviert, es kann damit nicht auch noch gleichzeitig dem Modul eine Bank zugewiesen werden.

Mit "bA1W" wird dann dem Modul A die Bank 1 zugewiesen und gemerkt.

ZitatSENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: Ai Bi* Ci Di) - compiled at Feb  6 2021 00:26:38
SENT: bA
Error! radio has no bank
Du kannst kein Modul auswählen dem noch keine Bank zugeordnet ist
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

juergs

    Hallo Ralf,

    danke.

    Mache heute nochmal einen Anlauf  ;)

    Die Quellen für die grüne MapleMini-Platinen scheinen wohl versiegt zu sein ...
    und diese hier
STM32 Black Pill STM32F411CEU6 100MHz - 512kB Flash
haben sich als vielleicht mögliche Alternative im Preis verdreifacht ...

/edit:
ZitatStarted!
Watchdog enabled
Init eeprom to defaults
ccFactoryReset done
CCInit
detect B: Partn=0 Ver=0x14
Starting timerjob
rxB=1
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: B0*) - compiled at Feb  6 2021 00:26:38

SENT: CREA
detect A: Partn=0 Ver=0x14

SENT: bA0W
Bank 0 is already used by radio B

SENT: bA1W
The bank 1 was not complete initialized, therefore the bank and radio is reseted to sduino defaults (raw e). ccFactoryReset done

SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: A1* B0) - compiled at Feb  6 2021 00:26:38

SENT: CREC
detect C: Partn=0 Ver=0x14

SENT: bC2W
The bank 2 was not complete initialized, therefore the bank and radio is reseted to sduino defaults (raw e). ccFactoryReset done

SENT: XQ
rxA=0 rxB=0 rxC=0

SENT: bD3W
radio is not aktive!

SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: A1 B0 C2*) - compiled at Feb  6 2021 00:26:38

SENT: CRED
detect D: Partn=0 Ver=0x04

SENT: bD3W
The bank 3 was not complete initialized, therefore the bank and radio is reseted to sduino defaults (raw e). ccFactoryReset done

SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: A1 B0 C2 D3*) - compiled at Feb  6 2021 00:26:38

V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: A1* B0 C2 D3) - compiled at Feb  6 2021 00:26:38
SENT: CW0001,0246,0302,042D,05D4,06FF,0700,0802,0D21,0E65,0F6A,1089,115C,1206,1322,14F8,1556,1700,1818,1916,1B43,1C68,1D91,2211,23E9,242A,2500,2611,3D00,3E03,404d,4131,425f,4349,4454,452b,4600
CW0001,0246,0302,042D,05D4,06FF,0700,0802,0D21,0E65,0F6A,1089,115C,1206,1322,14F8,1556,1700,1818,1916,1B43,1C68,1D91,2211,23E9,242A,2500,2611,3D00,3E03,404d,4131,425f,4349,4454,452b,4600 ok,N=0,ccmode=3
SENT: bC
switch to radio C
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: A1 B0 C2* D3) - compiled at Feb  6 2021 00:26:38
SENT: CW0001,0246,0302,042D,05D4,06FF,0700,0802,0D21,0E65,0F6A,1088,1182,1206,1322,14F8,1556,1700,1818,1916,1B43,1C68,1D91,2211,23E9,242A,2500,2611,3D02,3E03,404d,4132,425f,4349,4454,452b,4600
CW0001,0246,0302,042D,05D4,06FF,0700,0802,0D21,0E65,0F6A,1088,1182,1206,1322,14F8,1556,1700,1818,1916,1B43,1C68,1D91,2211,23E9,242A,2500,2611,3D02,3E03,404d,4132,425f,4349,4454,452b,4600 ok,N=2,ccmode=3
SENT: bD
switch to radio D
SENT: V
V 4.1.2-dev210205 SIGNALduinoAdv cc1101 (R: A1 B0 C2 D3*) - compiled at Feb  6 2021 00:26:38
SENT: CW0001,0246,0302,042D,05D4,06FF,0700,0802,0D21,0E65,0F6A,1088,1182,1206,1322,14F8,1556,1700,1818,1916,1B43,1C68,1D91,2211,23E9,242A,2500,2611,3D02,3E03,404d,4132,425f,4349,4454,452b,4600
CW0001,0246,0302,042D,05D4,06FF,0700,0802,0D21,0E65,0F6A,1088,1182,1206,1322,14F8,1556,1700,1818,1916,1B43,1C68,1D91,2211,23E9,242A,2500,2611,3D02,3E03,404d,4132,425f,4349,4454,452b,4600 ok,N=2,ccmode=3
SENT: br
r=A b=1 rx=0
ccmode=3 sync=2DD4
ccconf=21656A895C0622F856070018166C436891 boffs=0100 
r=B b=0 rx=0
ccmode=0 sync=D391
ccconf=10B07157C43023B900070018146C070090 boffs=0000 
r=C b=2 rx=0 N=2 ccmode=3 sync=2DD4 ccconf=21656A88820622F856070018166C436891 boffs=0140 
r=D b=3 N=2 ccmode=3 sync=2DD4
ccconf=21656A88820622F856070018166C436891 boffs=0180*
SENT: XE
rxA=1 rxB=1 rxC=1 rxD=1

Kaum macht man es richtig (*), schon geht es!
:)


(*)

  • Für Ranseyers Board die CUL-Binary nehmen!
  • Den "richtigen" MSC-Bootloader mit STLINK flashen.
  • Ein "i" bedeuted, daß das Modul zwar korrekt erkannt wurde, aber noch keiner Bank zugeordent wurde.
    Wenn ein Modul nicht aufgeführt ist, dann ist es noch deaktiviert.
[/list]

Ralf9

ZitatDie Quellen für die grüne MapleMini-Platinen schein wohl versiegt zu sein ...
In blau gibt's sie momentan noch ausreichend
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

Fritz Muster

Zitat von: Ralf9 am 20 Juni 2021, 11:23:47
In blau gibt's sie momentan noch ausreichend

Hast Du einen Tipp für mich wo ich noch welche bekomme?
Vielen Dank und viele Grüße
Fritz
RasPi 3B+, Stretch, Fhem 5.9, DBlog SQLite
HMLAN, mapleCUN MAX/WMBus, mapleSduino 868/433/868
HM Sensoren/Aktoren ,Technoline TX 29 DTH-IT, TFA 30.3155WD, MAX!
Hour Counter, Astro, EletricityCounter, Statistics, Charting Frontend, TabletUI, Modbus

Ralf9

Einfach bei Amazon, ebay oder aliexpress nach "maple mini stm32" suchen.
Normalerweise ist im Maple Mini ein STM32F103CBT6
Es gibt auch welche mit STM32F103RCBT6, weiß jemand was das R in der Bezeichnung bedeutet?

Gruß Ralf
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

Reinhard.M

Ich hätte da was (siehe Anhang) :)
Wobei 4 Buchstaben nicht richtig sein können  ???

Gruß Reinhard

PeMue

Zitat von: Ralf9 am 23 Juni 2021, 19:48:50
Es gibt auch welche mit STM32F103RCBT6, weiß jemand was das R in der Bezeichnung bedeutet?
Ich würde auf Schreibfehler im Amazon Shop tippen, die Boards sehen gleich aus.

Gruß Peter
RPi3Bv1.2 rpiaddon 1.66 6.0 1xHM-CC-RT-DN 1.4 1xHM-TC-IT-WM 1.1 2xHB-UW-Sen-THPL-O 0.15 1x-I 0.14OTAU  1xCUNO2 1.67 2xEM1000WZ 2xUniroll 1xASH2200 3xHMS100T(F) 1xRFXtrx 90 1xWT440H 3xTFA30.3150 5xFA21
RPi1Bv2 LCDCSM 1.63 5.8 2xMAX HKT 1xMAX RT V200KW1 Heizung Wasser

meier81

Hallo Ralf,

wollte mir mal heute die V4.2.0 für meinen MAPLE_SDUINO kompilieren, leider bekomme ich die folgende Fehlermeldung:


In file included from C:\Users\Familie\Documents\Arduino\SIGNALDuino\cc1101.h:11,
                 from C:\Users\Familie\Documents\Arduino\SIGNALDuino\SIGNALDuino.ino:119:
C:\Users\Familie\Documents\Arduino\libraries\output\src/output.h:37:17: error: #elif with no expression
   37 | #elif MAPLE_Mini
      |                 ^
exit status 1
Fehler beim Kompilieren für das Board Generic STM32F1 series.


Arduino IDE ist aktuell, Einstellungen des Boards sollten auch alles passen, waren ja alle okay für die V4.1.2.

Falls du noch Infos brauchst melde dich.

Gruß Markus

P.S.: Kann es sein das in der Datei output.h die Zeile 37 #elif defined(MAPLE_Mini) lauten sollte? Falls ja bekomme ich anschließend folgende Fehler:


In file included from C:\Users\Familie\Documents\Arduino\SIGNALDuino\SIGNALDuino.ino:123:
C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src/SimpleFIFO.h:45:7: error: variable or field 'IRAM_ATTR' declared void
   45 |  void IRAM_ATTR enqueue(int16_t element ); //add an element
      |       ^~~~~~~~~
C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src/SimpleFIFO.h:45:7: error: expected ';' at end of member declaration
   45 |  void IRAM_ATTR enqueue(int16_t element ); //add an element
      |       ^~~~~~~~~
      |                ;
C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src/SimpleFIFO.h:45:41: error: ISO C++ forbids declaration of 'enqueue' with no type [-fpermissive]
   45 |  void IRAM_ATTR enqueue(int16_t element ); //add an element
      |                                         ^
C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src/SimpleFIFO.h:64:16: error: expected initializer before 'SimpleFIFO'
   64 | void IRAM_ATTR SimpleFIFO::enqueue(int16_t element) {
      |                ^~~~~~~~~~
C:\Users\Familie\Documents\Arduino\SIGNALDuino\SIGNALDuino.ino: In function 'void setup()':
SIGNALDuino:457:2: error: 'getEthernetConfig' was not declared in this scope
  457 |  getEthernetConfig(true);
      |  ^~~~~~~~~~~~~~~~~
C:\Users\Familie\Documents\Arduino\SIGNALDuino\SIGNALDuino.ino: At global scope:
SIGNALDuino:840:16: error: expected constructor, destructor, or type conversion before ';' token
  840 |  noInterrupts();
      |                ^
SIGNALDuino:847:2: error: expected unqualified-id before 'if'
  847 |  if (RXenabledSlowRfA) {
      |  ^~
SIGNALDuino:864:2: error: expected unqualified-id before 'if'
  864 |  if (RXenabledSlowRfB) {
      |  ^~
SIGNALDuino:881:15: error: expected constructor, destructor, or type conversion before '(' token
  881 |   digitalWrite(PIN_LED, blinkLED);
      |               ^
SIGNALDuino:882:3: error: 'blinkLED' does not name a type
  882 |   blinkLED = false;
      |   ^~~~~~~~
SIGNALDuino:885:14: error: expected constructor, destructor, or type conversion before ';' token
  885 |  interrupts();
      |              ^
SIGNALDuino:890:2: error: expected unqualified-id before 'if'
  890 |  if (cnt0++ == 0) {
      |  ^~
SIGNALDuino:895:1: error: expected declaration before '}' token
  895 | }
      | ^
C:\Users\Familie\Documents\Arduino\SIGNALDuino\SIGNALDuino.ino: In function 'void loop()':
SIGNALDuino:928:2: error: 'ethernetLoop' was not declared in this scope; did you mean 'ethernet_h_'?
  928 |  ethernetLoop();
      |  ^~~~~~~~~~~~
      |  ethernet_h_
C:\Users\Familie\Documents\Arduino\SIGNALDuino\SIGNALDuino.ino: In function 'void getEthernetConfig(bool)':
SIGNALDuino:3204:3: error: 'initEthernetConfig' was not declared in this scope; did you mean 'getEthernetConfig'?
3204 |   initEthernetConfig();
      |   ^~~~~~~~~~~~~~~~~~
      |   getEthernetConfig
exit status 1
'getEthernetConfig' was not declared in this scope
QNAP NAS mit Debian VM, darauf FHEM, debmatic, influxdb2 und Grafana || HB-RF-ETH || SIGNALduino 433MHz mit Maple mini || WS980 Wetterstation || Xiaomi Mi Robot mit valetudo-FW || Buderus web KM100 || div. Tasmota-Devices

Ralf9

da haben ein paar Sachen noch nicht gepasst, ich habe es gefixt:
https://github.com/Ralf9/SIGNALDuino/tree/dev-r420_cc1101

Bin bei mir beim Arduino_Core_STM32 wieder von 2.0.0 auf die 1.9.0 zurückgegangen.

Bis der Bug in der 2.0.0 (STM32F10xx Serial bus fault on large data) gefixt ist, wird es wahrscheinlich noch etwas dauern
https://github.com/stm32duino/Arduino_Core_STM32/milestone/13

Gruß Ralf
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

meier81

Hallo Ralf,

hab mir mal die gefixte Version runtergeladen, hab aber leider weiterhin Probleme beim kompilieren mit dem MapleMini:


In file included from C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src\SimpleFIFO.cpp:5:
C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src\SimpleFIFO.h:59:28: error: 'FIFO_LENGTH' was not declared in this scope
   59 |   volatile int16_t rawFifo[FIFO_LENGTH];
      |                            ^~~~~~~~~~~
C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src\SimpleFIFO.h: In member function 'void SimpleFIFO::enqueue(int16_t)':
C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src\SimpleFIFO.h:76:2: error: 'rawFifo' was not declared in this scope
   76 |  rawFifo[nextIn] = element;
      |  ^~~~~~~
C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src\SimpleFIFO.h: In member function 'int16_t SimpleFIFO::dequeue()':
C:\Users\Familie\Documents\Arduino\libraries\SimpleFIFO\src\SimpleFIFO.h:84:9: error: 'rawFifo' was not declared in this scope
   84 |  return rawFifo[nextOut++];
      |         ^~~~~~~
exit status 1
Fehler beim Kompilieren für das Board Generic STM32F1 series.


Als Info hier meine compile_config.h:


#define MAPLE_SDUINO 1
//#define MAPLE_CUL 1
//#define BLACK_BOARD 1  // 1 - USB, 2 - serial USART2 fuer ESP
//#define SIGNALESP32 1
//#define EVIL_CROW_RF 1
//#define ESP32_SDUINO_TEST 1

#define LAN_WIZ 1        // nur fuer MAPLE_SDUINO mit USR-ES1 W5500
#define LAN_INIT_DHCP 1  // damit wird bei der ersten Inbetriebnahme DHCP verwendet
#define MAPLE_WATCHDOG 1

//#define DEBUG_BackupReg 1
//#define DEBUG_SERIAL 2 // debug level
#define SerialNr USART1 // serial2 = USART2

//#define DEBUGSENDCMD  1

// ---- this options are current not possible, because the V 4.x firmware is only for STM32 (Maple Mini)
//#define ARDUINO_ATMEGA328P_MINICUL 1
//#define OTHER_BOARD_WITH_CC1101  1

//#define WATCHDOG 1 // Der Watchdog ist in der Entwicklungs und Testphase deaktiviert. Es muss auch ohne Watchdog stabil funktionieren.


Gruß Markus
QNAP NAS mit Debian VM, darauf FHEM, debmatic, influxdb2 und Grafana || HB-RF-ETH || SIGNALduino 433MHz mit Maple mini || WS980 Wetterstation || Xiaomi Mi Robot mit valetudo-FW || Buderus web KM100 || div. Tasmota-Devices

Ralf9

das ist seltsam, wenn ich es mit der Arduino IDE compiliere verhält es sich anders.
Das Problem ist in der SimpleFIFO_h Zeile 37
#define FIFO_LENGTH            200
damit bekomme ich beim compilieren die folgende warning:
In file included from ... SIGNALDuino.ino:123
sketch/SimpleFIFO.h:37: warning: "FIFO_LENGTH" redefined
   37 | #define FIFO_LENGTH            200


Wenn ich in der SimpleFIFO.h das "#define FIFO_LENGTH            200" auskommentiere, dann bekomme ich beim compilieren keine warnings
//#define FIFO_LENGTH            200
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7