Code Monkey home page Code Monkey logo

Comments (7)

altelch avatar altelch commented on June 1, 2024

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.

Reinhartd avatar Reinhartd commented on June 1, 2024

Thank you, i will test it!

from sonoffir.

altelch avatar altelch commented on June 1, 2024

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.

Reinhartd avatar Reinhartd commented on June 1, 2024

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.

altelch avatar altelch commented on June 1, 2024

Hi, yes, that looks good.

Greetings,
Heiko.

from sonoffir.

Reinhartd avatar Reinhartd commented on June 1, 2024

I tested this today on my Samsung curved 55 and everything works perfectly!
Thanks again for your good support!

LG

from sonoffir.

altelch avatar altelch commented on June 1, 2024

Closed.

from sonoffir.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.