Hi, im trying to control a floorfan using IR, i can control other devices using the NEC protocol, but setting PulseDistance as protocol does not transmitting anything (IR LEDs dont blink)
Setting any of the other protocols and using the values randomly(no idea what im doing;) as the ADDR and CMD arguments and the results will vary from shortened values or turn into 0xFFF but the IR LEDs do blink.
This is what i get in the WebApp Logs when i press the buttons on the fan remote..
This is what i get back when i send the command using WebApp
With the ReceiveAndSendDistanceWidth.ino example from IRremote i can record and send the signal and the fan does its thing
Arduino serial monitor ouput:
Almost out of scalp hair to pull so any help is much appreciated (while iam at it very much thanks for this firmware, all your hard work resulted in me having many hours of fun!)
AI: Could you provide the specific model of the IR blaster and the floor fan you're using?
TUYA Home Smart Life Mini Universal IR Remote S18 (BK7231N) [CB3S]
Anslut Floor Fan
Item No.: 01470
AI: Can you describe your setup and configuration for the IR blaster, including any specific settings or connections?
"pins": {
"6": "Btn;1",
"7": "IRRecv;0",
"8": "LED;0",
"26": "IRSend;0"
}
Setting any of the other protocols and using the values randomly(no idea what im doing;) as the ADDR and CMD arguments and the results will vary from shortened values or turn into 0xFFF but the IR LEDs do blink.
This is what i get in the WebApp Logs when i press the buttons on the fan remote..
Debug:IR:IR decode returned true, protocol 1
Debug:IR: Raw-Data=0xFC03
Debug:IR: 48 bits
Debug:IR: LSB first
Debug:IR:IR decode returned true, protocol PulseDistance (1)
Info:IR:IR IR_PulseDistance 0xB22 0xB0B 0 (48 bits)
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"PulseDistance","Bits":48,"Data":"0xFC03"}} to irblaster/RESULT retain=0
Debug:IR:IR fire event took 0ms
#Debug info remains the same so i cut it out to make this less messy:
Info:IR:IR IR_PulseDistance 0xC21 0xC0A 0 (48 bits)
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"PulseDistance","Bits":48,"Data":"0xFC03"}} to irblaster/RESULT retain=0
Info:IR:IR IR_PulseDistance 0xC20 0xC0A 0 (48 bits)
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"PulseDistance","Bits":48,"Data":"0xF00F"}} to irblaster/RESULT retain=0
Info:IR:IR IR_PulseDistance 0xC21 0xC0A 0 (48 bits)
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"PulseDistance","Bits":48,"Data":"0xF40B"}} to irblaster/RESULT retain=0
Info:IR:IR IR_PulseDistance 0xC20 0xC0A 0 (48 bits)
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"PulseDistance","Bits":48,"Data":"0xF20D"}} to irblaster/RESULT retain=0
Info:IR:IR IR_PulseDistance 0xD20 0xD0A 0 (48 bits)
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"PulseDistance","Bits":48,"Data":"0xEE11"}} to irblaster/RESULT retain=0
Info:IR:IR IR_PulseDistance 0xC20 0xC0A 0 (48 bits)
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"PulseDistance","Bits":48,"Data":"0xD22D"}} to irblaster/RESULT retain=0
This is what i get back when i send the command using WebApp
Info:IR:Delay 100ms
Info:IR:IR send PulseDistance 0xC21 0xC0A 0 protocol 1 addr 0xC21 cmd 0xC0A repeats 0 bits override 0
Info:CMD:[WebApp Cmd 'IRsend PulseDistance 0xC21 0xC0A 0' Result] OK
With the ReceiveAndSendDistanceWidth.ino example from IRremote i can record and send the signal and the fan does its thing
Arduino serial monitor ouput:
Spoiler:
Using library version 4.4.1
Ready to receive pulse distance/width coded IR signals at pin 15
Ready to send IR signals at pin 4 on press of button at pin 10
Mark:
0: 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
10: 0 | 0 | 48x600 |
Space:
0: 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
10: 24x500 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
20: 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
30: 0 | 0 | 0 | 23x1650 | 0 |
DistanceWidthTimingInfoStruct: 8950, 4450, 0, 1650, 600, 500
PULSE_WIDTH: decodedRawData=0xFC03FC03FE01
DistanceWidthTimingInfo=8950, 4450, 600, 1650, 600, 500
Protocol=PulseDistance Raw-Data=0xFC03FC03FE01 48 bits LSB first
Send on a 32 bit platform with: IrSender.sendPulseDistanceWidth(38, 8950, 4450, 600, 1650, 600, 500, 0xFC03FC03FE01, 48, PROTOCOL_IS_LSB_FIRST, <RepeatPeriodMillis>, <numberOfRepeats>);
Store new timing info data=8950, 4450, 600, 1650, 600, 500
Store new numberOfBits=48
Store new sDecodedRawDataArray[0]=0xFC03FC03FE01
Stop receiving
Button pressed, now sending 48 bits 0xFC03FC03FE01 with sendPulseDistanceWidthFromArray timing=8950, 4450, 600, 1650, 600, 500
Data[0]=0xFC03FC03FE01 #=48
FC03FC03FE01|48
Button released -> start receiving
Almost out of scalp hair to pull so any help is much appreciated (while iam at it very much thanks for this firmware, all your hard work resulted in me having many hours of fun!)
AI: Could you provide the specific model of the IR blaster and the floor fan you're using?
TUYA Home Smart Life Mini Universal IR Remote S18 (BK7231N) [CB3S]
Anslut Floor Fan
Item No.: 01470
AI: Can you describe your setup and configuration for the IR blaster, including any specific settings or connections?
"pins": {
"6": "Btn;1",
"7": "IRRecv;0",
"8": "LED;0",
"26": "IRSend;0"
}