Comments (7)
Hi,
0x40BF is hex for the 32bit code you want to transfer. The decimal representation is 16575 so command would be: {"protocol": "SAMSUNG","bits": 32 "data": 16575}
from sonoffir.
Thank you, i will test it!
from sonoffir.
I think you only have the command data and miss the precode. Please check http://lirc.sourceforge.net/remotes/samsung/ for your remote type and check pre_data and pre_data_bits.
This needs to be padded in front of the command data. If you have eg. pre_data 0xFF and pre_data_bits of 26 you need to convert 0xFF40BF to decimal and set bits to 32+26. The pre data depends on your remote type. I only tested wiht LG but there it worked.
from sonoffir.
This is the documentation from lirc.
name Samsung_BN59-00940A bits 16 flags SPACE_ENC|CONST_LENGTH eps 30 aeps 100 header 4605 4344 one 678 1551 zero 678 436 ptrail 679 pre_data_bits 16 pre_data 0xE0E0 gap 107626 toggle_bit_mask 0x0 KEY_POWER 0x40BF
is this correct?
bits 16 pre_data_bits 16 pre_data 0xE0E0 Power On/Off 0x40BF E0E040BF = 3772793023
then the Json String is:
irsend {"protocol": "SAMSUNG","bits": 32, "data": 3772793023}
LG
from sonoffir.
Hi, yes, that looks good.
Greetings,
Heiko.
from sonoffir.
I tested this today on my Samsung curved 55 and everything works perfectly!
Thanks again for your good support!
LG
from sonoffir.
Closed.
from sonoffir.
Related Issues (5)
- How include this implementation to Tasmota HOT 1
- Raw data via mqtt HOT 1
- not an issue but a request HOT 1
- Sonoff Basic R2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonoffir.