PanStamp Board RGB,CW,WW;DMX;IR

Begonnen von ext23, 22 Juli 2013, 22:13:18

Vorheriges Thema - Nächstes Thema

somebuddy

Vielen Dank!

Habe nun mal diese hier getestet. War auf Seite 30 zu finden:

(http://i.imgur.com/H7Jf46Jl.jpg)

Flashen ging.. Es sind auch etwas mehr readings zu sehen. Adresse ist nun F0.
Farbänderungen nimmt er allerdings immer noch nicht an.

An und Ausschalten geht ebenfalls nicht. Sprint dann auf Status unknown.

Weiß nicht sicher ob das die von dir genannte .hex ist. Konnte sonst keine finden.

Danke !

justme1968

zeig mal bitte ein list auf das device.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

somebuddy


ext23

Oben in der Befehlseingabe einfach "list %Gerätenamen%" eingeben...

Also Beispiel: list SWAP_F0
HM, KNX, FS20, 1-Wire, PanStamp, AVR-NET-IO, EM1000EM, PCA301, EC3000, HM-LAN, CUL868, RFXtrx433, LGW, DMX @Ubuntu-Server (Hauptsystem) & Raspberry Pi (Satellit)

fidel

Hast du DMX im sketch auskommentiert?
Fhem 5.6 auf Cubietruck,CUL,CUL_TCM97001,FritzBox7390,HMLAN,CUL_HM_HM_OU-16LED,CUL_HM_HM_SEC_SC,CUL_HM_HM_LC_SW4,CUL_HM_HM_RT_DN,HUEBridge,HUEDevice,Panstick,Panstamp (binouts,rgddriver mit dht22),PHTV,Yamaha-AVR,Withings,ELV-IPS, etc...

fidel

Kompilier mal den Sketch den du runtergeladen hast und kommentiere in der config enable DMX aus.

Wenn du DMX benötigst ändere in der DMXSerial.h die Zeile:
#define DmxModePin 2 // Arduino pin 2 for controlling the data direction
in
#define DmxModePin 7 // Arduino pin 7 for controlling the data direction

sieht mir eigentlich nach dem Fehler aus den wir damals schon mal hatten...
Fhem 5.6 auf Cubietruck,CUL,CUL_TCM97001,FritzBox7390,HMLAN,CUL_HM_HM_OU-16LED,CUL_HM_HM_SEC_SC,CUL_HM_HM_LC_SW4,CUL_HM_HM_RT_DN,HUEBridge,HUEDevice,Panstick,Panstamp (binouts,rgddriver mit dht22),PHTV,Yamaha-AVR,Withings,ELV-IPS, etc...

somebuddy

Benötige kein DMX. Werde das dann nochmal versuchen mit dem "list". Morgen dann ;)

Danke !

fidel

Weil du geschrieben hast, dass du den Sketch ohne Änderungen kompiliert hast. Dann ist DMX aber mit drin. Dann kommentier es mal aus...
Fhem 5.6 auf Cubietruck,CUL,CUL_TCM97001,FritzBox7390,HMLAN,CUL_HM_HM_OU-16LED,CUL_HM_HM_SEC_SC,CUL_HM_HM_LC_SW4,CUL_HM_HM_RT_DN,HUEBridge,HUEDevice,Panstick,Panstamp (binouts,rgddriver mit dht22),PHTV,Yamaha-AVR,Withings,ELV-IPS, etc...

somebuddy

#578
Hier die Ausgabe des list Befehls:

Internals:
   CFGFN
   DEF        09 0000002200000003
   Developer  justme
   IODev      panStick
   LASTInputDev panStick
   MSGCNT     47
   NAME       SWAP_F0
   NR         302
   Product    RGB driver board with IR
   STATE      unknown
   SWAP_00-ProductCode 0000002200000003
   SWAP_00.1-ManufacturerID 00000022
   SWAP_00.2-ProductID 00000003
   SWAP_09-DeviceAddress 09
   SWAP_MISSED 0
   SWAP_Sent_unconfirmed 2 Sent_unconfirmed
   SWAP_lastRcv 2014-09-20 15:40:50
   SWAP_lastSend 2014-09-20 15:40:50
   SWAP_nonce 05
   TYPE       SWAP_0000002200000003
   addr       09
   devices
   nonce      2
   panStick_LQI 46
   panStick_MSGCNT 47
   panStick_RAWMSG (1D2E)0009000500090200020003
   panStick_RSSI -59.5
   panStick_TIME 2014-09-20 15:40:50
   Readings:
     2014-09-20 15:40:50   0B-RGBlevel     FFFFFFFF
     2014-09-20 15:40:50   0B.1-Red        FF
     2014-09-20 15:40:50   0B.2-Green      FF
     2014-09-20 15:40:50   0B.3-Blue       FF
     2014-09-20 15:40:50   0B.4-White      FF
     2014-09-20 15:35:29   0C-IRCommand    0000000000
     2014-09-20 15:35:29   0C.1-Type       00
     2014-09-20 15:35:29   0C.2-Value      00000000
     2014-09-20 15:35:29   0D-InternalTemperature 0000001D
     2014-09-20 15:35:29   0E-PowerOnState 3AFFFFFFFF
     2014-09-20 15:35:29   0E.1-State      3A
     2014-09-20 15:35:29   0E.2-Brightness FF
     2014-09-20 15:35:29   0E.3-Color      FFFFFF
     2014-09-20 15:35:29   0F-Command      00000000000000000000
     2014-09-20 15:35:29   0F.1-Cmd        00
     2014-09-20 15:35:29   0F.2-Args       000000000000000000
     2014-09-20 15:35:29   13-LedPower     01A5
     2014-09-20 15:35:29   internaltemperature 29
     2014-09-22 15:34:17   state           unknown
   Helper:
   Product:
     label      RGB driver board with IR
     name       rgbdriver
     pwrdownmode 0
     Registers:
       11:
         HASH(0xd89a80)
         HASH(0x1668ff8)
         HASH(0xa012a8)
       12:
         hwmask     02
         name       IRrecv
         swversion
         type       regular
         endpoints:
           HASH(0x1bfef58)
           HASH(0x1b78848)
           HASH(0x1680140)
       13:
         hwmask
         name       Temp
         swversion
         type       regular
         endpoints:
           HASH(0x1691958)
       14:
         hwmask
         name       PowerOn
         swversion
         type       config
         endpoints:
           HASH(0xd74ce0)
           HASH(0x1c5b9c8)
           HASH(0xf801e8)
           HASH(0xe21b58)
       15:
         HASH(0x1bd6350)
         HASH(0x16d9ae8)
       16:
         hwmask     08
         name       Repeater mode
         swversion
         type       config
         endpoints:
           HASH(0x166f208)
       17:
         hwmask     01
         name       Bri
         swversion
         type       regular
         endpoints:
           HASH(0x148e3d0)
       18:
         hwmask     04
         name       DMX
         swversion  00020001
         type       config
         endpoints:
           HASH(0x166f868)
       19:
         hwmask     10
         name       LedPower
         swversion
         type       regular
         endpoints:
           HASH(0x1119a48)
       20:
         hwmask     20
         name       IRsend
         swversion
         type       regular
         endpoints:
           HASH(0xbad8c0)
           HASH(0x1c340c0)
           HASH(0x18abc90)
           HASH(0x1ccb0a0)
   sentList:
     ARRAY(0x1bdb5a0)
     ARRAY(0x1bfeee0)
Attributes:
   IODev      panStick
   ProductCode 0000002200000003
   devStateIcon {(SWAP_0000002200000003_devStateIcon($name),"toggle")}
   room       SWAP_0000002200000003
   userReadings internaltemperature:0D-InternalTemperature {hex(ReadingsVal($name,"0D-InternalTemperature","0"))}
   webCmd     rgb:rgb ff0000:rgb 00ff00:rgb 0000ff:toggle:on:off:dimUp:dimDown




Mit dem orignilaen Arduino Sktech + auskommentiertem DMX bekomme ich das gleiche Fehlerbild wie "zuerst" beschrieben.


Edit:

Hat nicht zufällig jemand eine .hex die den Anforderungen entspricht ?

Also RGB Multiboard V1.1   RGBWarmweiß ( 4 Kanal )   , ohne DMX, ohne IR Send.

justme1968

sorry. ich bin am wochenende nicht dazu gekommen.

bitte setz noch mal das ProductCode attribut und mach dann ein set statusRequest.

in deinen internals fehlt der channels wert. das passiert wenn das device seine hard und software version nicht meldet. die sent unconfirmed deuten auch darauf hin das das device aus irgend einem grund nicht mehr sendet.

ich mache dir so bald es geht ein hex file fertig.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

somebuddy

Vielen Dank.

Auf was muss ich das ProductCode Attribut setzen ?
Ich tausche gleich mal die Träger Platine. Vielleicht ja doch ein Hardware "Fehler" ?

justme1968

auf den gleichen Wert der jetzt auch drin steht.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

somebuddy

Oh Wunder ! :)

Nach dem setzen des Codes hat es funktioniert !!! Das Ding reagier zum ersten mal !

Vielen DANK !

Woran lag das nun ? was hab ich falsch gemacht ?

Nun bleibt nur noch eine Frage offen.. wie steuere ich den 4 Kanal an ?
Ich kann nur RGB Werte einstellen.

Grüße !


Edit:

Hier nochmal ein List des funktionierenden Zustands:

Internals:
   CFGFN
   CHANNELS   4
   CMD_SIZE   10
   DEF        F0 0000002200000003
   Developer  justme
   IODev      panStick
   LASTInputDev panStick
   MSGCNT     329
   NAME       SWAP_F0
   NR         274
   Product    RGB driver board with IR
   STATE      off
   SWAP_00-ProductCode 0000002200000003
   SWAP_00.1-ManufacturerID 00000022
   SWAP_00.2-ProductID 00000003
   SWAP_01-HardwareVersion 00100052
   SWAP_02-FirmwareVersion 00020003
   SWAP_03-SystemState 01
   SWAP_04-FrequencyChannel 00
   SWAP_05-SecurityOption 00
   SWAP_06-SecurityPassword 00
   SWAP_07-SecurityNonce 22
   SWAP_08-NetworkID B547
   SWAP_09-DeviceAddress F0
   SWAP_0A-PeriodicTxInterval FFFF
   SWAP_MISSED 0
   SWAP_Sent_unconfirmed 2 Sent_unconfirmed
   SWAP_lastRcv 2014-09-22 15:58:22
   SWAP_lastSend 2014-09-22 15:58:21
   SWAP_nonce 4D
   TYPE       SWAP_0000002200000003
   addr       F0
   devices
   nonce      142
   panStick_LQI 48
   panStick_MSGCNT 329
   panStick_RAWMSG (1E30)00F0004D00F00B00000000
   panStick_RSSI -59
   panStick_TIME 2014-09-22 15:58:22
   Readings:
     2014-09-22 15:58:22   0B-RGBlevel     00000000
     2014-09-22 15:58:22   0B.1-Red        00
     2014-09-22 15:58:22   0B.2-Green      00
     2014-09-22 15:58:22   0B.3-Blue       00
     2014-09-22 15:58:22   0B.4-White      00
     2014-09-22 15:52:36   0C-IRCommand    0000000000
     2014-09-22 15:52:36   0C.1-Type       00
     2014-09-22 15:52:36   0C.2-Value      00000000
     2014-09-22 15:52:36   0D-InternalTemperature FFFFFFC2
     2014-09-22 15:52:36   0E-PowerOnState 3AFFFFFFFF
     2014-09-22 15:52:36   0E.1-State      3A
     2014-09-22 15:52:36   0E.2-Brightness FF
     2014-09-22 15:52:36   0E.3-Color      FFFFFF
     2014-09-22 15:58:21   0F-Command      11000100000000000000
     2014-09-22 15:58:21   0F.1-Cmd        11
     2014-09-22 15:58:21   0F.2-Args       000100000000000000
     2014-09-22 15:51:47   13-LedPower     01A5
     2014-09-22 15:52:36   internaltemperature 4294967234
     2014-09-22 15:58:22   state           off
   Helper:
     RGB_SIZE   5
   Product:
     label      RGB driver board with IR
     name       rgbdriver
     pwrdownmode 0
     Registers:
       11:
         HASH(0x2d2c958)
         HASH(0x2d258d0)
         HASH(0x2ca9b60)
       12:
         hwmask     02
         name       IRrecv
         swversion
         type       regular
         endpoints:
           HASH(0x2cacae8)
           HASH(0x2caca88)
           HASH(0x2cac638)
       13:
         hwmask
         name       Temp
         swversion
         type       regular
         endpoints:
           HASH(0x2d25af8)
       14:
         hwmask
         name       PowerOn
         swversion
         type       config
         endpoints:
           HASH(0x2ae00f0)
           HASH(0x2cfca50)
           HASH(0x2ae5b80)
           HASH(0x2cfc6c0)
       15:
         HASH(0x29f7088)
         HASH(0x2ce5098)
       16:
         hwmask     08
         name       Repeater mode
         swversion
         type       config
         endpoints:
           HASH(0x2d2c340)
       17:
         hwmask     01
         name       Bri
         swversion
         type       regular
         endpoints:
           HASH(0x2ce1330)
       18:
         hwmask     04
         name       DMX
         swversion  00020001
         type       config
         endpoints:
           HASH(0x2cacc08)
       19:
         hwmask     10
         name       LedPower
         swversion
         type       regular
         endpoints:
           HASH(0x2ac0ac0)
       20:
         hwmask     20
         name       IRsend
         swversion
         type       regular
         endpoints:
           HASH(0x2cad310)
           HASH(0x2ce75e0)
           HASH(0x2aba2b0)
           HASH(0x2ceecb8)
   sentList:
     ARRAY(0x2ab4668)
     ARRAY(0x2ce49c0)
Attributes:
   IODev      panStick
   ProductCode 0000002200000003
   devStateIcon {(SWAP_0000002200000003_devStateIcon($name),"toggle")}
   room       SWAP_0000002200000003
   userReadings internaltemperature:0D-InternalTemperature {hex(ReadingsVal($name,"0D-InternalTemperature","0"))}
   webCmd     rgb:rgb ff0000:rgb 00ff00:rgb 0000ff:toggle:on:off:dimUp:dimDown

somebuddy

Hat sich erledigt.
Hatte das Warm Weiß im 5 Kanal. Der 4 der eigentlich mit CW beschriftet ist, lässt sich über das manuelle setzen eines RGB Wertes auf 00 00 00 FF ansteuern.
Bekomme ich das auch irgendwie in die Oberfläche bzw. den Color Picker ?

Eine letzte Frage noch wäre ob es eine Möglichkeit zur Kalibrierung der Farben / FETs gibt. Sodas ein Gelb im Colorpicker auch wirklich Gelb ist und nicht z.B. Hellgrün.

Ich bin wirklich schonmal ziemlich glücklich ,dass es nun reagiert :)

justme1968

der colorpicker kann zur zeit nur rgb. die internen farb routinen sind schon zum teil auf mehr als drei kanäle ausgelegt aber noch nicht komplett.

du kannst dir rgbw presets   mit webCmd auf die oberfläche legen.

kalibrieren ist noch nicht vorgesehen. da zur zeit alles durchgehend nur mit 8 bit arbeitet würde hier auch auflösung verloren gehen.

die nächste version des bords soll mit 10 oder 12 bit arbeiten. dann werde ich de interne verarbeitung umstellen so das eine kalibrierung sinnvoller ist.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968