Hello,
There is a ir receiver device (VS1338B similar TSOP4838) and a ir transmitter led in the nodemcu. I can shutdown my samsung smart tv with sending <esp ip>/control?cmd=IRSEND,SAMSUNG,e0e09966,32 code. e0e09966 is my tv shutdown hex format command. I need to open smart tv web browser with sending hex code but i could not find. If i open the web browser by sending command with my harmony hub(universal remote controller), nodemcu ir receiver show me the 3772816993 value, so how can i transform that value to the hex data to send it with my nodemcu's ir transmitter?
IR Receiver data transformation to IR Sender
Moderators: grovkillen, Stuntteam, TD-er
IR Receiver data transformation to IR Sender
- Attachments
-
- IR_1.png (13.62 KiB) Viewed 7790 times
Re: IR Receiver data transformation to IR Sender
ESPeasy has a string transform function (strtol). But it converts any base value to decimal, not the other way around.so how can i transform that value to the hex data to send it with my nodemcu's ir transmitter?
I suggest using an online decimal-to-hex convertor to determine the equivalent hex value for your IR command. For example: https://www.rapidtables.com/convert/num ... o-hex.html
- Thomas
Re: IR Receiver data transformation to IR Sender
Ohh thank your reply but it seems no need any transformation. I notice that at the log page esp easy already convert it to the hex code for us. I attach the log page maybe future reference for somebody.ThomasB wrote: ↑03 Nov 2020, 22:43ESPeasy has a string transform function (strtol). But it converts any base value to decimal, not the other way around.so how can i transform that value to the hex data to send it with my nodemcu's ir transmitter?
I suggest using an online decimal-to-hex convertor to determine the equivalent hex value for your IR command. For example: https://www.rapidtables.com/convert/num ... o-hex.html
- Thomas
- Attachments
-
- IR_2_1.png (52.4 KiB) Viewed 7777 times
Re: IR Receiver data transformation to IR Sender
@Thomas: See the system variables page: To HEX: %c_2hex%(100000)
And there is even very extensive documentation about it https://espeasy.readthedocs.io/en/lates ... onversions
And there is even very extensive documentation about it https://espeasy.readthedocs.io/en/lates ... onversions
Re: IR Receiver data transformation to IR Sender
@asuz: Good to know you found what you needed. BTW, the log message you show is for IR SEND's data, whereas you were asking about converting the data from IR RECV.
@TD-er: Oh, new feature. Appears to be hot and fresh out of the oven. Thanks for adding it (and for documenting it too).
- Thomas
@TD-er: Oh, new feature. Appears to be hot and fresh out of the oven. Thanks for adding it (and for documenting it too).
- Thomas
Re: IR Receiver data transformation to IR Sender
Maybe there is a misunderstanding. I was trying to find the command of opening smart tv web browser ir command. My harmony hub can open the web browser but i want to do it without harmony hub. As i told you i need it is hex code to send it by ir led of ESP Easy . When i send to open web browser command with harmony hub, ir receiver in the ESP Easy box returns with the data of 3772816993 value but i cannot use it because i need hex code then i notice that ESP Easy already convert it to hex code at the log page so i use that hex code at the log page.ThomasB wrote: ↑04 Nov 2020, 00:02 @asuz: Good to know you found what you needed. BTW, the log message you show is for IR SEND's data, whereas you were asking about converting the data from IR RECV.
@TD-er: Oh, new feature. Appears to be hot and fresh out of the oven. Thanks for adding it (and for documenting it too).
- Thomas
Who is online
Users browsing this forum: Semrush [Bot] and 34 guests