ESP32 + PCF8574 zwiecha

cinas
Posts: 650
Joined: Sun Aug 14, 2022 6:59 am
Location: Kaczory
Has thanked: 3 times
Been thanked: 7 times

Post

Witam
Płyta KC868-A8 na pokładzie ESP32 + 2 x PCF8574 jeden dla przekaźników drugi dla wejść

Soft GG z roletami, przekaźniki, krańcówki , przyciski
Konfiguracja IC2
IIC SDA:4
IIC SCL:5

Po ustawieniu i restarcie wykrywa PCFy

Code: Select all

LAST STATE ADDED: Registered and ready
Current status: [17] Registered and ready
Changing activity timeout to 30
Send: [53 55 50 4C 41 14 02 00 00 00 D2 00 00 00 01 00 00 00 1E ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 14 02 00 00 00 DC 00 00 00 03 00 00 00 1E 0A F0 53 55 50 4C 41 ]
Activity timeout set to 30 s
Wrote 7 bytes to storage at 0
Commit
Scanning...
I2C device found at address 0x22I2C device found at address 0x24done[/quote]

Ustawiam 0x22 jako przyciski , dodaję przyciski i po restarcie wisi 

[quote]Send: [53 55 50 4C 41 14 03 00 00 00 28 00 00 00 10 00 00 00 52 00 00 00 00 00 00 00 DE 13 0C 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 14 03 00 00 00 32 00 00 00 10 00 00 00 CC 2A 77 65 00 00 00 00 37 55 08 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 14 04 00 00 00 28 00 00 00 10 00 00 00 6B 00 00 00 00 00 00 00 80 42 0C 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 14 04 00 00 00 32 00 00 00 10 00 00 00 E5 2A 77 65 00 00 00 00 B9 CD 07 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 14 05 00 00 00 28 00 00 00 10 00 00 00 84 00 00 00 00 00 00 00 60 71 0C 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 14 05 00 00 00 32 00 00 00 10 00 00 00 FE 2A 77 65 00 00 00 00 5C 94 07 00 00 00 00 00 53 55 50 4C 41 ]

Key: 118 Value:
Button[0]::setMulticlickTime: 450
[   406][E][Wire.cpp:83] initPins(): no Default SDA Pin for Second Peripheral
[   406][E][Wire.cpp:448] endTransmission(): NULL TX buffer pointer
Last edited by cinas on Tue Dec 12, 2023 8:49 pm, edited 1 time in total.
cinas
Posts: 650
Joined: Sun Aug 14, 2022 6:59 am
Location: Kaczory
Has thanked: 3 times
Been thanked: 7 times

Post

Wgrałem tylko rolety
Jak zapisuje dane i kliknę w GUI reset , resetuje się w kółko aż nie zmienię adresu w przeglądarce /?rbt=1

Przestawiłem adres PCF od przekaźników na 0x20

Co zaobserwowałem po oddaniu urządzenia do cloud muszę wykonać reset bo inaczej nie idzie dalej

Code: Select all

Save key: 2 Value: Garaz3
Save key: 3 Value: 
Save key: 4 Value: admin
Save key: 5 Value: pass
Save key: 6 Value: GUI Generic
Save key: 7 Value: svr68.supla.org
Save key: 8 Value: xxxxxxx
Save key: 9 Value: 1
Save key: 10 Value: 1
Save key: 15 Value: 0
Save key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 26 Value: ,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,
Save key: 80 Value: 1
Save key: 81 Value: 0
Save key: 96 Value: 0.25
Save key: 97 Value: 0.4
Save key: 102 Value: 0
Dodaję PCF8574/A I2C2 na adresie 0x22 i 8 przycisków i przypisuję im wejścia od 0 do 7
Po resecie esp wstaje
Dodaje drugiego PCF z adresem 0x20
Dodaje przekaźnik i esp stoi
Ktoś coś ?

Code: Select all

Key: 24 Value: ,,0,1,0,2,0,1,,,,,0,2,,,1,,,,,,,,,,,
Key: 25 Value: ,,0,1,0,2,0,,,,,,1,2,,,1,,,,,,,,,,,,
Key: 26 Value: ,,0,1,0,2,0,,,,,,2,2,,,1,1,,,,,,,,,,
Key: 27 Value: ,,0,1,0,2,0,,,,,,3,2,,,1,,,,,,,,,,,,
Key: 28 Value: 1,9,0,1,0,2,0,,,,,,4,2,,,1,,,,,,,,,,
Key: 29 Value: 1,10,0,1,0,2,0,,,,,,5,2,,,1,,,,,,,,,
Key: 30 Value: ,,0,1,0,2,0,,,,,,6,2,,,1,,,,,,,,,,,,
Key: 31 Value: ,,1,1,0,2,0,,0,1,,,7,2,,,1,,,,,,,,,,
Key: 32 Value:
Key: 33 Value:
Key: 34 Value:
Key: 35 Value:
Key: 36 Value:
Key: 37 Value:
Key: 38 Value:
Key: 39 Value:
Key: 40 Value:
Key: 41 Value: ,,1,1,0,2,0,,,,,,,,,,1,,,,,,,,,,,,,,
Key: 42 Value:
Key: 43 Value:
Key: 44 Value:
Key: 45 Value:
Key: 46 Value:
Key: 47 Value:
Key: 48 Value:
Key: 49 Value:
Key: 50 Value:
Key: 51 Value:
Key: 52 Value:
Key: 53 Value:
Key: 54 Value:
Key: 55 Value:
Key: 56 Value:
Key: 57 Value:
Key: 58 Value:
Key: 59 Value:
Key: 60 Value:
Key: 61 Value:
Key: 62 Value:
Key: 63 Value:
Key: 64 Value:
Key: 65 Value:
Key: 66 Value:
Key: 67 Value:
Key: 68 Value:
Key: 69 Value:
Key: 70 Value:
Key: 71 Value:
Key: 72 Value:
Key: 73 Value:
Key: 74 Value:
Key: 75 Value:
Key: 76 Value:
Key: 77 Value:
Key: 78 Value:
Key: 79 Value:
Key: 80 Value: 1
Key: 81 Value: 0
Key: 82 Value:
Key: 83 Value:
Key: 84 Value:
Key: 85 Value:
Key: 86 Value:
Key: 87 Value:
Key: 88 Value:
Key: 89 Value:
Key: 90 Value:
Key: 91 Value:
Key: 92 Value:
Key: 93 Value:
Key: 94 Value:
Key: 95 Value:
Key: 96 Value: 0.25
Key: 97 Value: 0.4
Key: 98 Value:
Key: 99 Value:
Key: 100 Value:
Key: 101 Value:
Key: 102 Value: 0
Key: 103 Value: ,6,6,,,,,,,0,0,,,,,,
Key: 104 Value:
Key: 105 Value:
Key: 106 Value:
Key: 107 Value:
Key: 108 Value:
Key: 109 Value:
Key: 110 Value:
Key: 111 Value: 0,1,2,3,4,5,6,7,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 112 Value:
Key: 113 Value:
Key: 114 Value:
Key: 115 Value:
Key: 116 Value:
Key: 117 Value:
Key: 118 Value:
[   395][E][Wire.cpp:83] initPins(): no Default SDA Pin for Second Peripheral
[   396][E][Wire.cpp:448] endTransmission(): NULL TX buffer pointer
cinas
Posts: 650
Joined: Sun Aug 14, 2022 6:59 am
Location: Kaczory
Has thanked: 3 times
Been thanked: 7 times

Post

Co ciekawe dziś soft na nowo wygenerowany i działa
Wczoraj coś strasznie muliło , może to powodowało błędy przy kompilacji

Return to “Ogólna dyskusja”