Sterownik RGB H801

maghost
Posty: 99
Rejestracja: ndz mar 27, 2016 12:30 am

Witam

Czy przewidziane byłoby wsparcie SUPLA dla tej płytki sterownika RGB H801?

http://www.ebay.com/itm/RGBWW-LED-Strip ... SwMNxXXhgZ

Nigdzie nie mogłem znaleźć schematu, ale z tego co widzę nie powinno być problemu, skoro pojawiło już się wsparcie dla RGBW do ESP8266.
Awatar użytkownika
pzygmunt
Posty: 18324
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Ściągnę i sprawdzę.
mozimek
Posty: 26
Rejestracja: pt lut 26, 2016 3:48 pm

Informacje na tej stronie https://eryk.io/2015/10/esp8266-based-w ... ller-h801/
powinny pomóc. Jeśli udałoby się przygotować wsad dla tego sprzętu to byłoby super :-)
mozimek
Posty: 26
Rejestracja: pt lut 26, 2016 3:48 pm

Witam,
Jakieś postępy w temacie H801? Zamówiłem 1szt. do testów, jeśli jakość będzie w miarę OK i uda się przeprogramować tem moduł z SUPLA to będzie super.
Marek
Awatar użytkownika
pzygmunt
Posty: 18324
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Zamówiłem te moduły, ale jeszcze nie dotarły.
mozimek
Posty: 26
Rejestracja: pt lut 26, 2016 3:48 pm

Witam,
Mój moduł właśnie dojechał. Uruchomiłem też VB z maszyna do kompilacji ale nie za bardzo wiem w których plikach zmienić wyjścia użyte do sterowania taśmą. Jakaś sugestia które pliki zmienić?
Marek
Awatar użytkownika
pzygmunt
Posty: 18324
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

https://github.com/SUPLA/supla-core/blo ... upla_esp.h
Za:

#elif defined(__BOARD_rgbw) || defined(__BOARD_rgbw_wroom)
mozimek
Posty: 26
Rejestracja: pt lut 26, 2016 3:48 pm

Pobrałem z Githuba ESP8266-IOT na maszynę wirtualną. Ale próba kompilacji kończy się błędami. Poniżej wszystkie komunikaty jakie dostaję po uruchomieniu kompilacji. Jakiś pomysł co robię źle?

supla@supla­iotsdk:~/Devel/supla­core/ESP8266_IOT$ ./build.sh rgbw
make ­C user clean; make ­C driver clean; make ­C supla­dev clean;
make[1]: Entering directory '/home/supla/Devel/supla­core/ESP8266_IOT/user'
rm ­f ­r .output/eagle/debug
make[1]: Leaving directory '/home/supla/Devel/supla­core/ESP8266_IOT/user'
make[1]: Entering directory '/home/supla/Devel/supla­core/ESP8266_IOT/driver'
rm ­f ­r .output/eagle/debug
make[1]: Leaving directory '/home/supla/Devel/supla­core/ESP8266_IOT/driver'
make[1]: Entering directory '/home/supla/Devel/supla­core/ESP8266_IOT/supla­dev'
rm ­f ­r .output/eagle/debug
make[1]: Leaving directory '/home/supla/Devel/supla­core/ESP8266_IOT/supla­dev'
rm ­f ­r .output/eagle/debug
./build.sh: 147: [: Illegal number:
make[1]: Entering directory '/home/supla/Devel/supla­core/ESP8266_IOT/user'
DEPEND: xtensa­lx106­elf­gcc ­M ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline-
functions ­nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle supla_esp_cfgmode.c
DEPEND: xtensa­lx106­elf­gcc ­M ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline-
functions ­nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle supla_esp_cfg.c
DEPEND: xtensa­lx106­elf­gcc ­M ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline-
functions ­nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle user_main.c
DEPEND: xtensa­lx106­elf­gcc ­M ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline-
functions ­nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle supla_ds18b20.c
DEPEND: xtensa­lx106­elf­gcc ­M ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline-
functions ­nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle supla_esp_pwm.c
DEPEND: xtensa­lx106­elf­gcc ­M ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline-
functions ­nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle supla_esp_devconn.c
DEPEND: xtensa­lx106­elf­gcc ­M ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline­
functions ­nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle supla_esp_gpio.c
DEPEND: xtensa­lx106­elf­gcc ­M ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline-
functions ­nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle supla_w1.c
DEPEND: xtensa­lx106­elf­gcc ­M ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline-
functions ­nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle supla_dht.c
xtensa­lx106­elf­gcc ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline­functions ­
nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle ­o .output/eagle/debug/obj/supla_dht.o ­c supla_dht.c
xtensa­lx106­elf­gcc ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline­functions ­
nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle ­o .output/eagle/debug/obj/supla_w1.o ­c supla_w1.c
xtensa­lx106­elf­gcc ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline­functions ­
nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle ­o .output/eagle/debug/obj/supla_esp_gpio.o ­c supla_esp_gpio.c
xtensa­lx106­elf­gcc ­Os ­g ­Wpointer­arith ­Wundef ­Werror ­Wl,­EL ­fno­inline­functions ­
nostdlib ­mlongcalls ­mtext­section­literals ­ffunction­sections ­fdata­sections ­
DICACHE_FLASH ­DESP8266 ­D__SINGLE_THREAD ­D__EH_DISABLED ­
D__BOARD_rgbw ­DCFG_SECTOR=0x3C ­DNOSSL=1 ­I include ­I ./ ­I ../include ­I ../include
­I ../include/eagle ­o .output/eagle/debug/obj/supla_esp_devconn.o ­c supla_esp_devconn.c
supla_esp_devconn.c: In function 'supla_esp_devconn_iterate':
supla_esp_devconn.c:797:27: error: 'SUPLA_CHANNELTYPE_DIMMERANDRGBLED'
undeclared (first use in this function)
srd.channels[0].Type = SUPLA_CHANNELTYPE_DIMMERANDRGBLED;
supla_esp_devconn.c:797:27: note: each undeclared identifier is reported only once for each
function it appears in
/home/supla/Devel/Espressif/ESP8266_IOT_SDK/Makefile:321: recipe for target
'.output/eagle/debug/obj/supla_esp_devconn.o' failed
make[1]: *** [.output/eagle/debug/obj/supla_esp_devconn.o] Error 1
make[1]: Leaving directory '/home/supla/Devel/supla­core/ESP8266_IOT/user'
/home/supla/Devel/Espressif/ESP8266_IOT_SDK/Makefile:307: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2
supla@supla­iotsdk:~/Devel/supla­core/ESP8266_IOT$
0xFF
Posty: 308
Rejestracja: sob lut 20, 2016 8:54 pm

Pobierasz tylko ESP8266-IOT czy całe repozytorium?
mozimek
Posty: 26
Rejestracja: pt lut 26, 2016 3:48 pm

Pobrałem tylko ESP8266-IOT. Po ściągnięciu całości supla-core kompilacja idzie bez problemu, dzieki :-)
W weekend przetestuję współpracę modułu z supla i napiszę co i jak.
ODPOWIEDZ

Wróć do „Pomoc”