Hardkernel Remote

Post Reply
User avatar
rooted
Posts: 6449
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 4 times
Been thanked: 4 times
Contact:

Hardkernel Remote

Unread post by rooted » Thu Feb 21, 2019 9:38 am

When the N2 is powered down you generally have to unplug/replug to boot which is less than ideal.

The Hardkernel remote power button will power the N2 back on, didn't see this mentioned but it's nice.

Please add a hardware power button, at least a header.

*edit*
Ask and ye shall receive:
viewtopic.php?t=33981

Last edited by rooted on Thu Feb 21, 2019 9:38 am, edited 3 times in total.

User avatar
tobetter
Posts: 3040
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 9 times
Been thanked: 23 times
Contact:

Re: Hardkernel Remote

Unread post by tobetter » Thu Feb 21, 2019 10:00 am

rooted wrote:
Thu Feb 21, 2019 9:38 am
When the N2 is powered down you generally have to unplug/replug to boot which is less than ideal.

The Hardkernel remote power button will power the N2 back on, didn't see this mentioned but it's nice.

Please add a hardware power button, at least a header.
Someone is working on it, not me. :) Hopefully it can be released at the end of this week if success.

joy
Posts: 727
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Hardkernel Remote

Unread post by joy » Fri Feb 22, 2019 4:14 pm

Hi, rooted.
GPIO power button and wakeup function will be included for the next new version.
Once it's released, I will share the version here in this thread.

If you need the patch files before release, please let me know.
I will share the patches.

User avatar
rooted
Posts: 6449
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by rooted » Fri Feb 22, 2019 11:23 pm

I can wait @joy, I actually don't have a problem using the remote but a lot of people don't have it ;)

SlappyMcPhee
Posts: 72
Joined: Fri Aug 18, 2017 2:09 pm
languages_spoken: english
ODROIDs: XU4 (3 of them)
Has thanked: 0
Been thanked: 0
Contact:

Re: Hardkernel Remote

Unread post by SlappyMcPhee » Mon Feb 25, 2019 5:39 pm

What is this remote you speak of?

Sent from my XT1635-01 using Tapatalk

Owner The Retro Arena and Odroid Retro Arena

User avatar
odroid
Site Admin
Posts: 30282
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 3 times
Been thanked: 26 times
Contact:

Re: Hardkernel Remote

Unread post by odroid » Mon Feb 25, 2019 5:41 pm

Probably, this official IR remote controller.
https://www.hardkernel.com/shop/ir-remote-controller/

SlappyMcPhee
Posts: 72
Joined: Fri Aug 18, 2017 2:09 pm
languages_spoken: english
ODROIDs: XU4 (3 of them)
Has thanked: 0
Been thanked: 0
Contact:

Re: Hardkernel Remote

Unread post by SlappyMcPhee » Mon Feb 25, 2019 5:44 pm

odroid wrote:Probably, this official IR remote controller.
https://www.hardkernel.com/shop/ir-remote-controller/
Ah, thanks!

Sent from my XT1635-01 using Tapatalk

Owner The Retro Arena and Odroid Retro Arena

User avatar
rooted
Posts: 6449
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by rooted » Mon Feb 25, 2019 7:30 pm

odroid wrote:Probably, this official IR remote controller.
https://www.hardkernel.com/shop/ir-remote-controller/
SlappyMcPhee wrote:What is this remote you speak of?

Sent from my XT1635-01 using Tapatalk
Correct, official remote.

Raybuntu
Posts: 1337
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by Raybuntu » Fri Mar 01, 2019 1:14 am


User avatar
rooted
Posts: 6449
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by rooted » Fri Mar 01, 2019 2:34 am

Thanks Raybuntu, I will try it soon as I can.

joy
Posts: 727
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Hardkernel Remote

Unread post by joy » Fri Mar 08, 2019 6:04 pm

Hi. @rooted.
I have one to share with you about IR remote wakeup.

In case of Ubuntu version, default ir remote driver has been changed to "meson-ir" driver to support LIRC.
After that, wake-up with ir remote power key doesn't work with the latest release version. (updated 2019/03/08).
It's a known issue and it will be fixed soon. ;)

To support various custom remote key values and protocols, we're working on it.

And in case of Android, there is no change (same driver), so no issue.

Before it's done, if you need to use wake-up function with ir remote, please refer to the following patch.

Code: Select all

From 3fd57d8cef0201988a857dbc56d9c5962fb34635 Mon Sep 17 00:00:00 2001
From: Joy Cho <joy.cho@hardkernel.com>
Date: Wed, 06 Mar 2019 09:34:22 +0900
Subject: [PATCH] scp: remote: init ir remote as default NEC mode

Change-Id: I8da251f11d6c738588571b35a3535d685844950c
---

diff --git a/arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c b/arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c
index 37b89a0..b65b3b9 100644
--- a/arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c
+++ b/arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c
@@ -283,11 +283,15 @@
 
 static int init_remote(void)
 {
-	return 0;
-	uart_put_hex(readl(AO_IR_DEC_STATUS), 32);
-	uart_put_hex(readl(AO_IR_DEC_FRAME), 32);
 	init_custom_trigger();
-	//return 0;
+
+	uart_puts("init_remote: IR_DEC_STATUS 0x");
+	uart_put_hex(readl(AO_IR_DEC_STATUS), 32);
+	uart_puts(", IR_DEC_FRAME 0x");
+	uart_put_hex(readl(AO_IR_DEC_FRAME), 32);
+	uart_puts("\n");
+
+	return 0;
 }
 
 /*can be called in pwr_ctrl.c*/

joy
Posts: 727
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Hardkernel Remote

Unread post by joy » Fri Mar 08, 2019 6:08 pm

rooted wrote:
Fri Feb 22, 2019 11:23 pm
I can wait @joy, I actually don't have a problem using the remote but a lot of people don't have it ;)
And here is a wiki guide to use GPIO Power Key on ODROID-N2.
The functionality has been released. ;)
https://wiki.odroid.com/odroid-n2/appli ... key_wakeup

User avatar
rooted
Posts: 6449
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by rooted » Fri Mar 08, 2019 11:07 pm

Thanks joy and raybuntu

Raybuntu
Posts: 1337
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by Raybuntu » Fri Mar 08, 2019 11:52 pm

@joy Just so you know u-boot already supports a custom keycode from user https://github.com/CoreELEC/u-boot/blob ... ask.c#L158
Although we would need to process that in kernel. Would be best to set it in boot.ini linux cmdline so kernel can use SCPI low_task to communicate with the firmware.

User avatar
rooted
Posts: 6449
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by rooted » Sat Mar 09, 2019 12:19 am

@Raybuntu My son has been in the hospital for the past 11 days, I haven't had a chance to test but I appreciate you shared the preliminary work.

Just didn't want to seem flakey.

Raybuntu
Posts: 1337
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by Raybuntu » Sat Mar 09, 2019 1:07 am

rooted wrote:
Sat Mar 09, 2019 12:19 am
@Raybuntu My son has been in the hospital for the past 11 days, I haven't had a chance to test but I appreciate you shared the preliminary work.

Just didn't want to seem flakey.
Ohh man I'm so sorry I hope all is or will be alright!
I didn't even expect any feedback respectively forgot about this thread already. I just thought I share some info or commits we already have. It will always be helpful for new developers.

Anyway don't worry about it.

hominoid
Posts: 257
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, XU4, MC1, N1, N2
Location: Lake Superior Basin, USA
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Hardkernel Remote

Unread post by hominoid » Sat Mar 09, 2019 1:11 am

rooted wrote:
Sat Mar 09, 2019 12:19 am
@Raybuntu My son has been in the hospital for the past 11 days, I haven't had a chance to test but I appreciate you shared the preliminary work.

Just didn't want to seem flakey.
My thoughts are with you and your family. I hope everything works out for the best @rooted.

User avatar
rooted
Posts: 6449
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by rooted » Sat Mar 09, 2019 2:27 am

He unfortunately requires chemotherapy. Thanks for the well wishes, even though we haven't met I feel like a lot of members here are my friends.

This forum helps keep me out of my head where bad thoughts are, I wish he had something like that for himself.

User avatar
mad_ady
Posts: 5676
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 18 times
Been thanked: 18 times
Contact:

Re: Hardkernel Remote

Unread post by mad_ady » Sat Mar 09, 2019 2:59 am

I think all the regular folks around here share the same feelings...
Sorry for the hardships life is throwing your way :(. Hope you get over them soon...

User avatar
tobetter
Posts: 3040
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 9 times
Been thanked: 23 times
Contact:

Re: Hardkernel Remote

Unread post by tobetter » Sat Mar 09, 2019 3:07 am

@rooted, sorry to hear that. I wish your son get over with your family.

Raybuntu
Posts: 1337
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by Raybuntu » Sat Mar 09, 2019 3:38 am

I'm heartbroken to read this. My prayers go to your son.

elatllat
Posts: 1226
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Hardkernel Remote

Unread post by elatllat » Sat Mar 09, 2019 9:53 am

Best wishes rooted.

joy
Posts: 727
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Hardkernel Remote

Unread post by joy » Mon Mar 11, 2019 8:30 am

@rooted,
So sorry to hear that.
I wish your son overcome and get better soon.
I will pray for your family.

joy
Posts: 727
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Hardkernel Remote

Unread post by joy » Mon Mar 11, 2019 9:00 am

Raybuntu wrote:
Fri Mar 08, 2019 11:52 pm
@joy Just so you know u-boot already supports a custom keycode from user https://github.com/CoreELEC/u-boot/blob ... ask.c#L158
Although we would need to process that in kernel. Would be best to set it in boot.ini linux cmdline so kernel can use SCPI low_task to communicate with the firmware.
@Raybuntu,
Thank you for the valuable information.
I didn't know the available scpi interface exist on g12b.

Already I made a simple approach that conveys key values through unoccupied debug registers, AO_DEBUG_REG2 or REG3
and it works with a simple kernel driver and bl301 changes.
But it's a kind of workaround.

I think the way that communicates through firmware using pre-defined scp commands must be better.
Could you please let me check that way on kernel driver and BL and implement it this week?

And my goal is same as you.
1. The approach can be activated by setting a cmdline parameter of boot.ini,
2. Then, a kernel driver conveys the remote key pattern to scp task (bl301) ( 1. through unoccupied AO registers -> 2. through a firmware with a scp command )
3. After poweroff, remote thread in scp_task on bl301 will catch it. ( 1. through unoccupied AO registers -> 2. through a firmware with a scp command )

Raybuntu
Posts: 1337
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by Raybuntu » Mon Mar 11, 2019 9:48 pm

Your solution sounds good too. Beware AO_DEBUG_REG2 is used for some timeout value for remote in u-boot I haven't checked if thats the case for g12b. But REG3 is free afaik.

joy
Posts: 727
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Hardkernel Remote

Unread post by joy » Tue Mar 12, 2019 8:29 am

@Raybuntu,
I confirmed the way which uses scpi command SCPI_CL_REMOTE works well.
I made a simple kernel driver and there is no need to modify bl301 source code.

As you mentioned, the approach using AO debug registers is NOT reliable and it was just a workaround.
Thank you for sharing the information again.

I have one more work to support different types of DEC protocols through user interface like boot.ini.

Raybuntu
Posts: 1337
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by Raybuntu » Tue Mar 12, 2019 4:38 pm

that sounds awesome @joy. Thank you for your work!

InspecteurGadget
Posts: 85
Joined: Thu Apr 27, 2017 3:33 am
languages_spoken: French, English
ODROIDs: Odroid C2
USB GPS, Bluetooth, Wifi
Emmc 8g Android M
Rtc modue
Has thanked: 0
Been thanked: 0
Contact:

Re: Hardkernel Remote

Unread post by InspecteurGadget » Sun Apr 07, 2019 2:43 am

Hi its possible to use power on/off with a interrupteur with two possition ? 1 OR 0 like a Relay

joy
Posts: 727
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Hardkernel Remote

Unread post by joy » Sun Apr 07, 2019 10:06 am

InspecteurGadget wrote:
Sun Apr 07, 2019 2:43 am
Hi its possible to use power on/off with a interrupteur with two possition ? 1 OR 0 like a Relay
Could you refer to this wiki page?
https://wiki.odroid.com/odroid-n2/appli ... key_wakeup
It's available to control GPIO (high/low control) as power on/off button with the method.

joy
Posts: 727
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Hardkernel Remote

Unread post by joy » Sun Apr 07, 2019 10:21 am

A bit late update here for wake-up using IR remote controller on N2.
https://wiki.odroid.com/odroid-n2/appli ... _wakeup_n2

Actually I intended to make a perfect solution by AUTO-Parsing the lirc key table in /etc/lirc/ WITHOUT any user's effort. But, it seems to be a long-term job to support auto-parsing for all protocol and remote key format cases. :o
I hope I can improve it with more convenient way. The core side in LIRC framework is still a deep forest to look into and undertand how it interfaces for me.

Raybuntu
Posts: 1337
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by Raybuntu » Mon Apr 15, 2019 6:38 pm

@joy is it possible that hk-lirc-helper doesn't work when built as a module. I'm trying to use it with CoreELEC but even though I set remotewakeup in bootargs it's still 0xffffffff.
I need to use modules because we build media_build as an addon.
Maybe the helper needs module_param?

Raybuntu
Posts: 1337
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Hardkernel Remote

Unread post by Raybuntu » Tue Apr 16, 2019 5:59 am

Yeah I added module_param and now it's working.

joy
Posts: 727
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Hardkernel Remote

Unread post by joy » Fri Apr 19, 2019 1:42 pm

@Raybuntu,
Sorry for late response.
So now with CoreELEC, remotewakeup is available now thanks to you.
Glad to hear that. :D

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest