0

Send a command twice

Alex K. 2 years ago updated 2 years ago 7

Hello,


I am using a demo installation of comfortclick. I am trying to power on/off a Sony monitor through a global cache device (GC-100-12).

I have built an ir receiver with an arduino.

When I press the power on/off button I get these two commands.


A90
Decoded SONY: A90 (12 bits)
Raw (26): 2400 -600 1200 -600 600 -550 1200 -600 600 -600 1150 -600 600 -600 600 -550 1200 -600 600 -600 550 -600 600 -600 600 
A90
Decoded SONY: A90 (12 bits)
Raw (26): 2400 -600 1200 -550 600 -600 1200 -600 600 -550 1200 -600 600 -550 600 -600 1200 -600 600 -550 600 -600 600 -600 600 


From what I see it is the same command send twice, I guess to avoid false positives.

I have configured the command to comfortclick and I can send the command, this is what I get when I receive the command with my ir receiver.


A90
Decoded SONY: A90 (12 bits)
Raw (26): 2400 -550 1250 -500 650 -550 1200 -550 650 -550 1200 -550 600 -600 650 -500 1250 -500 650 -550 650 -550 650 -550 600 


The problem is that the monitor doesn't power up.

I think I need to send the command twice to power it up.

How can I achieve this through comfortclick?

Mhhhh maybe I don't understand the question, but those commands are differents:


A90
Decoded SONY: A90 (12 bits)
Raw (26): 2400 -600 1200 -600 600 -550 1200 -600 600 -600 1150 -600 600 -600 600 -550 1200 -600 600 -600 550 -600 600 -600 600 
A90
Decoded SONY: A90 (12 bits)
Raw (26): 2400 -600 1200 -550 600 -600 1200 -600 600 -550 1200 -600 600 -550 600 -600 1200 -600 600 -550 600 -600 600 -600 600 

Do you respect the input format ?


There is also some tool on GlobalCache website https://www.globalcache.com/downloads/ 

The best is to have the HEX code and convert it in GC format


What is your Sony device ?

It is a Sony monitor KDL-55W805C. From this post it says that the sony protocol needs to send the command three times.


https://learn.adafruit.com/using-an-infrared-library/hardware-needed


I have success with two LG monitors that I use for testing and I can control them fine. The LG uses the nec protocol but Sony uses it's own.


Does anyone have tried to control a Sony TV or monitor?

go to https://irdb.globalcache.com/Home/Database, register and download what ever code you need. All Sony TV codes seems to be available (you'll get them via email).


exemple :


code set: 3387

function: POWER TOGGLE

code1: sendir,1:1,1,40000,1,1,96,24,48,24,24,24,48,24,24,24,48,24,24,24,24,24,48,24,24,24,24,24,24,24,24,1035

hex code1: 0000 0068 0000 000d 0060 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 040b


Hope this help,

Hello Fabien,


Thank you for your suggestion. I have tried the values that global cache has in their database and they don't work


For the time being I don't want any codes, if you know just tell me how I can send through comfort click one command two or more times.

I will figure out the rest.

As far I know the Arduino library do it by himself, if you have select the Sony device command is sended three times.

If you wanna send manually make a task with a trigger and place a delay between the command call.

Regards.

+1

Ok tried again with a task but now three times and the monitor powered, thank you for your support.