yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Themes and Apps] woody21:
Reading IR Codes

Well Done to the Dev for working on this

I dont know if this would be any use to you but you can use an arduino with IR Receiver to read IR pulses and its so easy as codes are already freely availiable to do it so you can just program and go! You can also using an IR LED to output IR Pulses.

The Arduino may be a helpfull tool for the development and testing of your project as it will show you the IR pulses a remote generates and enable you to make your own database.

Its cheap and works very well. If you can use the data it gives you it could be a very useful tool... You can even use the arduino on android as there are a lot of apps that support it now and you can connect it to the gs4 via usb otg if you need to.

The arduino if you can use it would be a way of getting a user generated code database too as there are many arduinos out there and i bet theres a fair few on xda that have one already and could help with providing codes. I have one and could start providing codes from remotes i have.

Heres a good tutorial on it - http://www.ladyada.net/learn/sensors/ir.html
[Galaxy S 4 Themes and Apps] Ten0:
Sample code

Hi, I am currently looking for the code to use the infrared emmiter of my s4. It's rooted so I don't mind if the solution for this is to enable/disable the light using console commands. The only thing I need is a sample code to send a custom code via the light. And as here it seems that you found a solution to send that code, I'm asking here.

Thanks in advance !

Edit: Sorry, found ^^

https://github.com/rngtng/IrDude/blob/master/src/com/rngtng/irdude/MainActivity.java
[Galaxy S 4 Themes and Apps] Ten0:
Hello,

In the sample code that you gave (yeah, double post, I couldnt post the link this time for an unknown reason, new user limitations...)

There are pre-made codes for remotes, for example.

hex2dec("0000 006d 0022 0002 0152 00aa 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 003f 0015 0015 0015 0015 0015 0015 0015 0015 0015 003f 0015 003f 0015 003f 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 003f 0015 003f 0015 003f 0015 003f 0015 003f 0015 003f 0015 003f 0015 003f 0015 0015 0015 0015 0015 0696 0152 0055 0015 0e23"));

But what does this corresponds to? I suppose I have to convert this to binary, so that means that the s4 will send :

0000 0000 0000 0000 0000 0000 0110 1101 0000 0000 0010 0010 when the code is the following : 0000 006d 0022

But what is the frequency of the signal? 40KHz? 36KHz ? And how much time will it keep sending that signal at 36/40/whatever KHz for each bit?

Thanks in advance.
[Galaxy S 4 Themes and Apps] sregnov:
wow

thank you. i will give this a try. i have both Smart IR Remote and TouchSquid, but both aren't able to control one of my TVs which I use for my PS3.
[Galaxy S 4 Themes and Apps] Actt:
Sweet.

Skickat från min GT-I9505G via Tapatalk 2
[Galaxy S 4 Themes and Apps] questionmark:
Hi

My apologies for delay answering.

The code given there ( I did not post that one myself ) is a PRONTO code format I would believe

To be honest IR code, PRONTO, HEX RAW , frequency etc... is very complicated to me...

Here there is some explanation : http://www.remotecentral.com/features/irdisp1.htm

This is more for electronic engineer and I'm not one...

So sorry. All I know is that

If I have valid pronto code and I send it to the GS4 IR blater it works.

Getting the code is the pain here... If you have a learning device ( philips pronto remote very expensive) and better USB-UIRT very cheap you can learn code and convert to pronto code. At this point having the code from remotecentral internet lookup using my APP or learning it with USB-UIRT, I can just edit the XML or set directly the code in the APP...

At one point I will support learning via USB-UIRT through IP...

Cheers

JM
[Galaxy S 4 Themes and Apps] questionmark:
Hi

Apologies for the delay...

Duh...that is an odd screen... not sure why you have nothing there...

The APP is designed on GS4 ( I use omega ROM with a google kernel just fine ) but I'm sure it be OK with stock ROM.

The APP screen layout etc... only supports GS4 for the moment...Thinking doing for the NOTE2...

I have done major update ( well I believe ) please see the first post and try again if you like

If it still does not work, and you use GS4 then I like to understand / help you.

Cheers
[Galaxy S 4 Themes and Apps] questionmark:
Hey !

Many thanks for this information.

I use USB-UIRT for the momment via IP in the APP and the native IR blaster, but cannot learn from it.

I will check BIG time arduino and see if it helps me.

Thanks again.

This is the sort of post I like to receive; basically help / info on the IR topic, best hardware device ( mainly for learning)

Cheers
[Galaxy S 4 Themes and Apps] questionmark:
Hi

I've posted new version with VIDEO see first post.

IMO I improved it massively especially thanks to SIMONVT menudrawer for the look and feel. Also put in couple feature.

I also started to manage exception :) and tight the stuff much more.

As well as adding some features alignments mainly...

Yet still it is alpha and lot work needs to be done.

1)need to support TextView and other objects as only ImageView are implemented in activity design

2)Lot of work in the BINDING (edit action screen) object to DEVICE DB or jump to activity ( currently not showing binding that was previously set)

-implement timer

-implement hard key trapping and binding action to volume up/down/menu/back key ( HOME seems to be a pain in android)

-delete bindings

3)support LONG / REPEAT sending of IR

Thanks for your support

JM
[Galaxy S 4 Themes and Apps] sregnov:
thank you. will give try this new version. i'll let you know what i think about it in a few days. cheers.
[Galaxy S 4 Themes and Apps] dest1:
I love this app
[Galaxy S 4 Themes and Apps] questionmark:
Thank you. It is very motivating...

I love android and it is fun developing with it...

Cheers

JM
[Galaxy S 4 Themes and Apps] daihung1:
Hi,

I'm a noob here so bare with me with questions that may seem dumb.

To my understanding, this app let you design your own ir remote layout with custom buttons. It also let you enter your own IR codes associate to the buttons to control whatever device that receive ir. Am I correct so far?

I have an old split-unit air conditioner which I have no idea what brand it is. I want to use my S4 to program this thing. I'd first have to find out what the IR code it uses from sites like remotecentral.com and then program it in the app? What if I can't find the codes then would I have to to use some device to learn/extract it? The remote is kind old but still works. I'm afraid that one day the remote will get lost or broken then I'd have no way to turn on this thing. If this app can help me do this, it's going to be wonderful.

Also, would I be able to setup this app to control ir toys, etc?

Thanks in advance.
[Galaxy S 4 Themes and Apps] questionmark:
Hi,

There is NEW version posted today. See first page of this thread.

YES your are correct. The design screen aspect is what is the most important to me. As well of course the IR code(s) bound to buttons or ACTIVITY objects.

You can see the video of the previous version ( will post some new videos as I improved the binding screen and other stuff since...)

Surely you will have to get the BRAND somewhere so to maximize the chance to find the IR CODE for that device

Assuming you KNOW the BRAND and assuming the code is on REMOTECENTRAL

http://www.remotecentral.com/cgi-bin/codes

You can directly import it from the application...

If the DEVICE isn't there you will have to get the codes from somewhere... IF you find it on other places than remotecentral...then you can

in the APP DEVICE DATABASE add an entry and copy and past the code ( PRONTO FORMAT)

At this point the rest is easy...just create your screen with a button and bind the button the found code...

CORRECT. I have a Philips pronto remote, so I have no problem, as well as this cheap USB-UIRT IR blaster and receiver that can learn remote control code.

For the moment for devices not on remotecentral I uses either the philips pronto remote or USB-UIRT to learn the device...at this point either I use the APP or edit directly the DEVICE.XML file...

I *WILL* soon or later add support for learning from USB-UIRT or the MS IR BLASTER (you will need a PC though that act as a learning server).... any other solution like using the camera to learn IR is not really feasible...it is possible...but would be quite complex. There are some other phone that supports learning... well I don't have it but it is a shame Samsun did not put that in CAUSE then it truly would have been nice....

Yes this APP can do this. As a matter of fact I have a very expensive philips pronto remote that might die...I have also older phones... and think using them as universal remote control.. As an example I have an old samsung ace I no longer use... I can design screen with the S4 no problem and could downscale or provide an option to create REMOTE ACTIVITIES for the ACE screen dimension and then provide the "launcher" for the ACE. Since the ACE does not have IR it will off course go against a gatevway (hence remoteGate); a little server that just listen on IP socket and when receive a command i.e.: a IR CODE just blast it from USB-UIRT or the MS USB BLASTER.

Probably, toys as helicopter and so... well might work...but the S4 blaster is quite weak .. also these remote for toys would probably send some sequences of codes on certain frequencies not compatible with S4... So in principle it could be possible but there could be limitation...would not surprise me

CURRENTLY the APP does NOT allow LONG PRESS and blast code in sequence IE VOLUME UP/DOWN... I will work on this..

Good luck

Cheers
[Galaxy S 4 Themes and Apps] questionmark:
Video of new features...

https://www.dropbox.com/s/k8k4diam4n9jdta/new features.mp4

Will post the update on Sunday.
[Galaxy S 4 Themes and Apps] daihung1:
I downloaded this application today and when I get a chance I'll play with it. Thanks again for your effort.
[Galaxy S 4 Themes and Apps] questionmark:
New download:

Added TextView ( LABEL for remote screen in design ACTIVITY). This is not complete for the moment; i.e.: Label will not show when launching the remote.

This will be soon implemented as well as the need to re-organizing design activity menu.

Here an example
[Galaxy S 4 Themes and Apps] questionmark:
05/08/2013: More features demo... IPCAM view in remote activity. Only rtsp stream ( mjpgeg lib out there very unstable.) For the moment only a VIDEO shows the feature.

I need to stabilize all these new things ( especially labels). I'm just toying for the moment

What is better than showing the remote working while having on the remote screen an RTSP feed of my webcam...

https://www.dropbox.com/s/1xl7pxa80a2wuqt/SCR_20130805_191821.mp4

Of course this makes sense only if you control your device remotely ( via GATE part or remoteGate).

Next not sure when I will need to stabilize all what I have. Menu need re-organizing, icons for the menu bug fixes and as soon labels in remote are fully featured I guess it will become V1.

Cheers

Jean-Marc
[Galaxy S 4 Themes and Apps] questionmark:
Update if anyone is interested.

See first page.

Cheers
[Galaxy S 4 Themes and Apps] questionmark:
Hi

Again an update. Previous update was quite buggy, I sent it just before leaving on Holiday...

So my apologies to the one that downloaded it. Also thanking the people that downloaded my app. You can rest assured it will become better and better in the future.

I still investigate on feature mainly how can we maximize chances to find IR code for our device

I came across this

http://www.bengt-martensson.de/harc/lirc2xml.html

This allows to convert with little limitation ( repeat code) LIRC remote to pronto code ( this is what I use in remoteGate)

Using IRDROID ( I bought the audio blaster just to thank people on there effort) I noticed that it has a JNI LIRC interface to LIRC .

So I use that interface now in remoteGate, not to send IR since we have a build in blaster but just the open source LIRC interface..

I will also later support other hardware using there audio blaster.

Then with the JNI LIRC interface in remoteGate I added an interface to lirc2xml.

This allows me for example from the OPENELEC provided LIRC remote to convert it to pronto code and the resulting XBOX generated code worked for my Asus eebox. LIRC2XML for that openelec LIRC conf file generated an invalid XML file ( as there is some fail code) but the one that are decoded are usable. So open the generated XML using a text editor if using a browser detects a bad XML. I tested couple other LIRC just fine though.

I believe with REMOTECENTRAL + LIRC remote support there is much more chance for one to find working code to there device.

Of course for the moment this is a prototype: from the main menu you can convert a LIRC.CONF file that you first download manually from

http://lirc.sourceforge.net/remotes/

and then convert it to pronto code as an XML fine generated in REMOTEGATE/LIRC.CONF folder... (see snapshots)

From there using the device DB of remoteGate you can copy and paste your code..

Surely this is quite some work: I need to work in automating testing/validating codes as other APP does out there, as well as generate remote template from that...

Well that is my future goal.

In the mean time I fixed couple of nasty issues form previous version improved slightly TextView.

I will not be able to work much on this till end of November ( I will have lot of other work).

Attached some screen shot.

The new version can be downloaded in the first post

Cheers

Jean-Marc
[Galaxy S 4 Themes and Apps] smfbradshaw:
Excellent work in progress here

I have been following this thread right from the beginning and you now have an excellent app developing that

has been very well thought out.

If people are prepared to put some effort in at the beginning it is well worth it.

With the latest version I have just put together a remote to control my Humax PVR9200T freeview box.

I am now using this from my Galaxy S4 I9505 and all buttons work perfectly.

One thing I found a little lacking were the icons to use on the remote so

I created some of my own for use with the remote I developed.

I am now just finishing off another remote for my Philips 36PW9618 television.

Please continue with this excellent program when you get time and if you need me to test anything then I will be glad to.
[Galaxy S 4 Themes and Apps] Ten0:
arduino

Hey... I've had a look at your link about prontocode, and I think I'm gonna buy an arduino leonardo along with some stuff and program it so that it can extract via a tsop the code of the remote, and convert it to prontocode (which doesn't seam very complicated).

After what I'll try to make my arduino communicate directly with the phone. It has already been made but will probably be harder.
[Galaxy S 4 Themes and Apps] Ten0:
Just bought the stuff, I should receive it on Saturday. Keeping you up to date.
[Galaxy S 4 Themes and Apps] Ten0:
Got it all. For the time beeing, i've been able to get the graphes of the IR signals I sent to the card.

I should be able to create a program to convert it to pronto code pretty soon :)

After what, I'll go on the probably hardest part : do it through the S4.
[Galaxy S 4 Themes and Apps] questionmark:
Hi Everybody,

I don't have much message that is good because I'm busy but I don't know if people are using or not. I could see some recent encouragement and I thank the people for trying that stuff and for the encourage. This is really what keeps me going. See since I stated to share that stuff the progress IMO on it got amazing at least for me.

I did that first for myself and really like to share, to learn programing on Android. Because it is at least usable for me I shared it hoping people will use enjoy.

Again thanks for the last message I will read soon.

Anyway on mean time here an update I did this week-end. See the first page for change log.

Hope you like it.

Of course still many bugs, still alpha..

Next stuff is really to support automatically LIRC database. With that + REMOTE central most of common device should be found.

Cheers

Jean-Marc
[Galaxy S 4 Themes and Apps] questionmark:
THANKS FOR THIS NICE ENCOURAGEMENT!

Update: especially you might have notice IR blasting from S4 was lagging a lot. I found that out when going in business trip trying a SAMY TV in the HOTEL.

I did not notice that as I use USB-UIRT blaster as IP transport in RemoteGate. With that it is fine though I will have to think about latency....

Cheers

JM
[Galaxy S 4 Themes and Apps] questionmark:
Hey

Yes did not spend much time on this aspect. In fact ARTS is the most work here at the end, and ultimately one of the most important thing.

I'm curious of your activity DESIGN and wonder if you don't mind sharing screen shots here. Also if you don't mind sharing your ICONS you designed or found, please pass along and I will put them in the package if you are fine with it. The DIGITS ICONS are not the best currently. ALSO look for good CHANEL ICONS. I could find couple things but not that nice...

There are quite a lot of sites out there hosting free ART: searching pictures IE ,"TV ICON PNG" on GOOGLE would return a lot of ICON free to be used...

This makes me think that I like to implement something to fetch ART automatically, basically scrape the site and get the icon....

As for your proposition for testing, thanks and sure I might take the offer. Currently all what I do I test and avoid too post to often... That recent update might have issue, but could not avoid myself to post that feature of automatic activity generation from selected functions in the remote DB.. It is quite functional I find.

for the moment I'm more focused on the feature than consolidating the whole stuff...

Order of priority now for me is

1)SUPPORT LIRC format and automatic fetching of LIRC DEVICE FILE to import automatically in RemoteGate

2)More work on blasting code from native IR: here all is fine and fast now, just need to support LONG PRESS REPEAT... As for WIFI I have some latencies issues I like to fix.

I will provide soon the GATE part of REMOTEGAT. This is python script actually running on my FRITZBOX router. When I will provide this, it is IMO nice to try to use on a raspberry pi along with USB-UIRT or other IR dongle. The pythons script also has some support for PLUGWISE to switch on/off the plugs + query the WATT usage...

3)PERFORMANCE: if you look at the MCE generated screen it contains 44 buttons + 44 textview. These textview get converted to BMP ultimately and this is slow and also cause me trouble to position / zoom them accurately : The ZOOM (pinch) is done on the BMP of the TEXT, and from the ImageView Rectangle I figure out the font size ( this is quite OK but not so accurate). Anyway it takes about 2 sec to load this screen ( not bad ) but feels quite slow at loading... So I will try to improve that... might also think about not embed the IR code in the ACTIVITY but rather reference from the DEVICE DB instead.... but I'm worry about the blast performance then.

Cheer

Jm
[Galaxy S 4 Themes and Apps] smfbradshaw:
JM.

As you know there are many free sites for obtaining icons.

I just used one where I could create text based icons and download them for use on the Humax remote.

The site was http://cooltext.com/

I enclose a picture of the Humax remote I created that works perfectly.

I had noticed the lag in the IR Blaster performance on the Galaxy S4 but it's not that bad in my opinion.

The long press continual blasting on volume keys would be great.

regards.

---------- Post added at 01:44 PM ---------- Previous post was at 01:36 PM ----------

I tried to embed a picture but it did not work so enclosing url

https://www.dropbox.com/s/uvm9g9w83tgfjnz/Screenshot_2013-10-31-11-04-47.png
[Galaxy S 4 Themes and Apps] questionmark:
Massive update...

08/12/2013:

-Redesign of all menus

- Multi device support mdpi/hdpi and xhdpi ( minimum Android 4.1)

-Improve performance loading activity ( this became apparent when using the GALAXY ACE)

-Undo / Redo

-Generate remote template from the DEVICE database

-Support LEARNING when using RemoteGate Python socket server ( provided in the ZIP)

Cheers

JM
[Galaxy S 4 Themes and Apps] questionmark:
An Update :

CHANGELOG

27/12/2013:

-DEVICE DB: recognize KEYWORD IR= use the native device IR blaster.

USB-UIRT: Blast IR via WIFI to the RemoteGATE.py server.

VIDEO: Video URL ( supported by Android VIDEOVIEW)

These are KEYWORDS that must be used. IF you only plan to use RemoteGATE with the S4 internal blaster set your DEVICE ( edit field to IR ). Later on setting screen will deal about that automatically with list of supported devices : I.E.: it should be possible to use the VISTA USB IR dongle ( cheap ) for blasting and learning IR using eventGhost py modules

-Implemented LONG TOUCH ( repeatable button) in the remote activity action: you can check any button you want to allow repeat. This is working both for IR and USB-UIRT. Currently timings are hard coded but they be soon or later in the config screen. When USING USB-UIRT and this via the internet, it actually works quite fine...there is some latencies but it is workable.

-Implemented DELAY in milliseconds in activity action, to separate IR blast or USB-UIRT wifi blast to set delays in between blasted actions...

-Implemented MOVE UP/ DOWN action in the list. It supports multi-selections move up/down of contiguous on non contiguous items

(See snapshots above )

-Improved PLUGWISE threads getting watts info.

IMPORTANT: If you use remoteGATE and did design couple screen, you will have open your screen in activity action and click on your buttons that defines your actions so that the XML updates. There as been quite some change. Again you just must open the action for the button and click OK. You don't have to delete/recreate your actions.

Sorry for the inconveniences...

SNAPSHOTS

RemoteGate Activity action (bindings) to a button that support repeat ( long touch)

RemoteGate Activity action XBMC / TV and long action test example

RemoteGate DB supported DEVICES : IR=device internal blaster. VIDEO RTSP stream, USB-UIRT via WIFI RemoteGATE.py SERVER
[Galaxy S 4 Themes and Apps] daihung1:
I'm going to have to spend some time on this app to make it work for my devices. It seems to get better and better. Thank you. Keep up the good Work.