[APP] [IR] [IPCAMERA] [GESTURE] [SPEECH] Design your own remote control

tboss1995

Member
Nov 12, 2011
16
1
0
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.
 
Last edited:

tboss1995

Member
Nov 12, 2011
16
1
0
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.
 
  • Like
Reactions: daihung1

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
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
 

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
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.
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
 
  • Like
Reactions: daihung1

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
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.
.
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
 
Last edited:

smfbradshaw

Member
May 31, 2011
8
2
0
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
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 ----------

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.
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
 
  • Like
Reactions: daihung1

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
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
 

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
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
 
Last edited:
  • Like
Reactions: daihung1

daihung1

Senior Member
Jan 30, 2012
199
29
0
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.

Sent from my SGH-M919 using Tapatalk 2
 
  • Like
Reactions: ipsuvedi

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
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.

Sent from my SGH-M919 using Tapatalk 2
Thanks

Here an update :

Update...improvement and new feature.

12/1/2014
-Implement RemoteGate shortcut on launcher home screen.
-Improve action threading (delay and blast).
NOTE: Action of buttons containing activity and or delay cannot be repeatable button ( long press)
You can have multiple activities ( jump to a screen activity ) on a button BUT only the last activity will show.
Activity or SCREEN UI are shown FIRST then all the action BLASTING IR/DELAY are EXECUTED IN ORDER.


RemoteGate shortcuts on HOME screen launcher



RemoteGate showing shortcut creation of any button on your launcher, use of simple and complex activity as well as use off Remotegate over the internet via 3G.
See VIDEO:
https://www.dropbox.com/s/fl1m25kip...rtcuts complex activity and 3G connection.mp4

Video explained.

1)open remote gate and create "My Remote" ( shortcut to your HOME activity on the launcher.
Then showing the use of the remote. This is equivalent to open RemoteGate and touch launch remote menu.
RemoteGate is the APP that you would use to create your device DB, then activity screen and the action bound to buttons
"My Remote" is the runtime that is a shortcut to the RemoteGate launch remote menu.

2)Launch RemoteGate again and go in activity action
-show action for the designed TV activity
-Long press on the TV button the create the shortcut
-Do the same for the Stream button ( this is a complex activity ) and create a shortcut
-next open the TV activity show the action for 2 channels and create the shortcut as well for the TV power button
-next go in the dimmer activity and create shortcut to open / close light.
NOTE: I am using LightMan this is a device that receive blaster IR and then blast it to RF to some sheap switches and dimmers.

3)Finally show the launcher home screen with the created shortcuts
-The VIDEO widget is not from RemoteGate it only serve the purpose to show the action on clicking on the shortcut created.
RemoteGate has is own VIDEOVIEW ( RTSP only ) and no widget for it for the moment
-touch the Dimmers ON shortcut
==>show light tuning on in the VIDEO vidget ( reflexion on the TV)
-Dimmers off
-touch the TV power button
=>open the TV
-touch HISTORY HD shortcut
=>blast IR, 6,0,2
-touch France
=>blast IR 6,2,2
NOTE you can blast IR with the GS4 as you know, here in my case I use USB-UIRT and the RemoteGate Python server

4)Next touch stream a complex RemoteGate activity
-It shows a video view of my IPCAM
-It shows current wattage of the TV
-Touching the HARDKEY menu opens the TV menu
-Long press (repeat down button )

5)Lastly DISABLE wifi and use 3G and do the SAME as above.
With RemoteGate you can control your devices remotely, you can design your own activities etc...
 
Last edited:
  • Like
Reactions: daihung1

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
IMPORTANT information from this new update (also from the previous version ) for anyone that use or evaluate the APP

DEVICE DB : find IR code from remote central or lirc when adding a device to the database will add your device as "Infra Red"
This field can be edited and should be changed/edit to "IR" instead to blast IR code from the GS4 natively

Indeed RemoteGate uses and recognize currently these
IR : Blast IR natively from the device IE GS4 IR blaster
VIDEO: To display RTSP video in a VIDEOVIEW
USB-UIRT : To blast IR code via WIFI and the RemoteGate.py SERVER
PLUGWISE: To send command and get wattage from PLUGWISE devices via WIFI and the RemoteGate.py SERVER

So this field is important. Currently they are editable and will become spinner selection ( non editable ) in the device database ( non editable but selectable). For adding new fields (other types of devices) that RemoteGate.py SERVER should process the CONFIG screen of RemoteGate will be used in the future.

So basically if you found your DEVICE on remote central or LIRC, testing it ( this will blast IR by default on the GS4 hence working ) then add all or part o your device functions to the DB YOU MUST change "Infra Red" to "IR".
From the DEVICE DB you can click the BLAST picture on the row of the function you want to test. If it is working (blue led on GS4 upon blasting IR) then this code can be bound to any button from the activity action screen.

Sorry for this issue, I forgot I did change in this area even in the previous version.
 
Last edited:
  • Like
Reactions: fartlec

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
Update...

Couple new features, improvement and bug fixes...
NOTE: I keep updating it on a week basis average and will not necessarely post new message on update.
They are in the OP in the changelog at the end.



20/1/2014
Add notifications : Showing ICON in status bar of sent actions : IR (red) or WIFI (blue), Delay and Activity

19/1/2014
Add Simple Gesture ( swipe up/down/right/left ) in edit activity action so to bind these gesture to list of actions: JUMP to an activity + BLAST + DELAY

15/1/2014
-Improved shortcut: if shortcut of UI activity are launched and then closed via the HOME hardkey button, as expected it would stay in memory and when opening another different shortcut the same previous shortcut would show instead of the selected one. So now only for shortcut, going back to the launcher via the HOME key would finish() the the application shortcut opened so that new opened shortcut would display fine.
-Improved DEVICE DB : now if using a android DEVICE with native IR capability ADDING a device from RemoteCentral or LIRC will set the field to "IR" instead of "Infra Red".
If the android device does not support IR natively, "USB-UIRT" would be set instead implying you have to set RemoteGate.py server to have a functional remote.

A NOTE about shortcut : The data of the shortcut; ACTIVITY to OPEN and OR IR to be blasted / DELAYS are bundled in the shortcut itself this means if the BUTTON action that has a shortcut on the launcher is modified, the shortcut MUST BE RECREATED ( long press). I think it is better to have the DATA in the shortcut itself instead of the shortcut referencing some file with the data... The inconvenience of re-creating the shortcut is IMO less than having extra files lying around



VIDEO notification, see top left status bar and notification of the Actions.
NOTE: if a button triggers a lot of actions with DELAY that also contains a JUMP to an activity, that activity UI will show first ( regardless the order of that activity in the list of action), then all other NON UI action will be performed asynchronously in order ( meaning the UI is NOT block ) but the application will not send DIRECTLY new actions (they be queued) when pressing on the button of the activity that showed first until the first actions are finish. The action DIALOG where you set your action ALLOWS multiple UI ( jump to an activity ) to be performed but I think I will remove it to allow only ONE UI activity. I don't see the point to have actions that would show multiple UI separated by delays...

https://www.dropbox.com/s/yotbzjvgjj5jba4/RemoteGatenotifications2.mp4?m=

RemoteGate Activity action menu : Actions for HARD KEY, GESTURE and BUTTONS


RemoteGate Activity action on gesture IE. Swipe right.
 
Last edited:

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
Transition effects, custom gesture and speech reconition for activity screen

Hi,

Will post the update this week-end, here just a preview.




Activity screen now supporting Custom gesture and Speech recognition. As well as allowing to see non visual actions ( IE HARD KEY, SWIPE, SPEECH and GESTURE) for editing ( modify / deleting)

Bellow a video. On the video you cannot hear me speaking the actions as the soft that capture the video if using the mic would not allow speech recognition.
But you can see that “You cannot hear me but I speak the actions” got recognized in the activity screen when I spoke it. When using the remote screen created as shortcut you will see speech ICON on the top left status bar when requesting speech recognition

I believe this makes remote use more versatile, touch screen are lovely but noting is better than a good old remote with hard button to be used in the dark, so gesture are important, speech is more a gimmick but might be handy.

https://www.dropbox.com/s/5cfv11l5i1usnv2/Gesture and speech recognition.mp4


Worked on setting screen adding transition. Also allow Gesture overlay to be seen or not, as well as notification.
For the RemoteGate SERVER part there is now password.
This setting screen NEEDS LOT OF improvement, need to change totally the layout…anyway it is functional
The video bellow shows setting and transition effects.

https://www.dropbox.com/s/g3037m6j4919vu6/new settings.mp4
 

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
Update with new features (download on OP )

If you install this update please un-install previous version and re-install.


CHANGELOG

02/02/2014
-Custom gesture support for remote actions ( works also on Galaxy ACE)
-Speech recognition for remote action ( not supported on Galaxy ACE, OK on Note 2, TAB 7.7).
To make this feature work make sure in Language and Input settings you select Google Voice typing and choose your language and for offline speech recognition download your language
-List of non-visual actions (i.e.: HARD KEY, GESTURE, SPEECH ) in RemoteGate activity action, so you can delete / edit non visual actions.
-Syncing actions against the device database in RemoteGate activity action; All screen you device that bind action from the DEVICE DB stores the actions inside the ACTIVITY XML file, *not* as reference to the Device DB but statically. Hence when modifying the devices in the RemoteGate Device Database view, you can sync / refresh the action for your remote activity.
-Support look and feel transition between remote activities ( none:default, fade in/out, slide in/out)
-RemoteGate Config screen support now
-RemoteGate password
-Change of transition for your remote screen
-Disable/Enable notification
-Disable/Enable overlay gesture view
-Enable vibration on touch button else default sound ( if android sound config enabled “Touch sounds”)


SCREENSHOTS:
RemoteGate Activity action menu

Custom Gesture Edit

Non visual actions edit and view

Non visual actions (speech) go to discovery channel on sharp TV

RemoteGate Activity action on gesture IE. Swipe right.

Settings General

Settings User interface for remote activities
 
Last edited:
  • Like
Reactions: fartlec

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
can we transmit raw ir code tru this app?
Could you please elaborate on what you mean exactly by "raw ir code"
Can you show me that code you have in mind?

RAW code from what I understand are code that got learned, see
http://www.remotecentral.com/features/irdisp2.htm
and
http://www.codeproject.com/Articles/6786/C-Remote-Control-using-the-Audio-Port

There are many formats out there the most commonly used is the PRONTO format.
RemoteGate supports only (currently ) pronto format, that is if you find your code(s) on remotecentral or any other place, you can enter/paste it in the DEVICE DB and blast it / link it to UI buttons (activity/remote screen you design yourself).
RemoteGate also supports converting LIRC.CONF remote codes file to PRONTO HEX using
LIRC2XML
see
http://www.bengt-martensson.de/harc/lirc2xml.html
This is done in remotegate transparently by going to LIRC database and search remote that match yours.

So here is how it works in remotegate when blasting pronto raw code to the GS4 blaster:


PRONTO RAW HEX FORMAT SHARP TV POWER OFF

"The first number is always a zero (0000) it indicates that the IR pattern is raw data, which means it was learned. "

0000 006c 0000 0020 000a 0046 000a 001e 000a 001e 000a 001e 000a 001e 000a 001e 000a 0046 000a 0046 000a 001e 000a 0046 000a 001e 000a 001e 000a 001e 000a 0046 000a 001e 000a 06d7 000a 0046 000a 001e 000a 001e 000a 001e 000a 001e 000a 0046 000a 001e 000a 001e 000a 0046 000a 001e 000a 0046 000a 0046 000a 0046 000a 001e 000a 0046 000a 06d7

==>converted from pronto Hex to decimal (see irData bellow )to blast on the GS4

38380,10,70,10,30,10,30,10,30,10,30,10,30,10,70,10,70,10,30,10,70,10,30,10,30,10,30,10,70,10,30,10,1751,10,70,10,30,10,30,10,30,10,30,10,70,10,30,10,30,10,70,10,30,10,70,10,70,10,70,10,30,10,70,10,1751

IF this is what you mean by RAW IR then, sure I could allow passing such code in the DEVICE DB and blast it directly

So I'm currently using this code (credit to IrDude )
https://github.com/rngtng/IrDude/blob/master/src/com/rngtng/irdude/MainActivity.java


protected String hex2dec(String irData) {
List<String> list = new ArrayList<String>(Arrays.asList(irData
.split(" ")));
list.remove(0); // dummy
int frequency = Integer.parseInt(list.remove(0), 16); // frequency
list.remove(0); // seq1
list.remove(0); // seq2

for (int i = 0; i < list.size(); i++) {
list.set(i, Integer.toString(Integer.parseInt(list.get(i), 16)));
}

frequency = (int) (1000000 / (frequency * 0.241246));
list.add(0, Integer.toString(frequency));

irData = "";
for (String s : list) {
irData += s + ",";
}
return irData;
}

I believe also on android 4.4 ( KitKat ) there is now an official API to blast IR CODE , not sure about learning which our GS4 device does not support anyway.
It is possible that the code from IrDude no longer will function on KitKat and app using it would need to update using the official API.
Will see if I update my device to KitKat ( using OMEGA 21 , but like many I’m not a fan of knox …)
If anyone uses android 4.4 and remotegate I would be curious to know if it still works.
 
  • Like
Reactions: science_student
Nov 30, 2012
6
0
0
thx for for your time ...i have collected different ir codes for different buttons thru WinLIRC.I connected a ir receiver to my computers mic input then i got these codes (config file attached) open that file in notepad you will see what i am talking about..is far i have understood these codes are decimal codes(correct me if i am wrong):silly: please help me if i can use these codes to control my device from my sgs4..
 

Attachments

Last edited:

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
thx for for your time ...i have collected different ir codes for different buttons thru WinLIRC.I connected a ir receiver to my computers mic input then i got these codes (config file attached) open that file in notepad you will see what i am talking about..is far i have understood these codes are decimal codes(correct me if i am wrong):silly: please help me if i can use these codes to control my device from my sgs4..
Hi

Thanks for getting me the file.

Your file is a LIRC learned file using flags RAW_CODES|CONST_LENGTH.
RemoteGate supports importing directly from LIRC web site
http://lirc.sourceforge.net/remotes/
as well as remotecentral ( in this case pronto hex )
Importing from LIRC is currently transparent, if you know you DEVICE or spend sometimes testing you can find your code.
As an example for reasonably old SAMSUNG LCD TV this conf is working fine
http://lirc.sourceforge.net/remotes/samsung/AA64-50236A
I tested also an OLD Thomson VCR, from my old mum :) just fine
So importing LIRC file generally found as flags SPACE_ENC seems to work fine for the 2 I’ve tested.
I never try before RAW_CODES

Now your file is RAW_CODES|CONST_LENGTH and you provide it as a file.
So what I did is to add in the DEVICE DB screen in the RemoteGate APP the option to import from a FILE, as currently the IMPORT was only from LIRC DB and RemoteCentral www site.
I tested your file and ALL code got converted to pronto code (quite long one ) and ALL except Input/Mute/In seems to blast fine ( checking with a CAMERA to see if the diode emits something or USB-UIRT) the other not sure why they would not work.
So I tested some other RAW LIRC CODE such as this one found here
http://www.gossamer-threads.com/lists/mythtv/users/366788
and all code shows blasting signal on the diode


Yet of course I cannot myself tell if they would be successful.
So please give it a try here a video showing the way I do it with RemoteGate
https://www.dropbox.com/s/oipvtv4oaaflaw2/importing from RAW LIRC FILE.mp4



1)Install the APP as explained on the first page ( this is an update with the ABILITY to import LIRC from a FILE)
2)That file must be in the folder REMOTEGATE/LIRC.CONF as LIRC.CONF so once you unzipped RemoteGate copy and rename your FILE
3)execute RemoteGate and select menu “Device Database”. I will improve this allowing selection of file(s). If there are no LIRC.CONF in the REMOTEGATE/LIRC.CONF/ folder then selecting “import LIRC file” will go back to the main RemoteGate screen ( hence doing nothing )
4)once in Device database ensuring you have your file in REMOTEGATE/LIRC.CONF/LIRC.conf select menu “import LIRC file”
5)The remote function defined in your LIRC.conf file should show; you can test / blast IR by touching the function name ( not the checkbox) , you should see the GS4 blue led lighting.
As mentioned except Input/Mute/In does not seem to blast anything ( no visual on the diode with a camera ) BUT the other one do emit the diode…now I’m curious if they work for your device.
6)If it works you can generate a remote template with simple rectangle button and label as shown in the video
7)you can then change the design or re-create the UI of the remote you like ( design activity) as shown in the multiple video I did
8)then bind action/delay sequence etc to your button including gesture and speech triggers

So I hope some of the code will work for you.
If not can you tell me what device BRAND/MODEL your WINLIRC file uses (you might find it on the LIRC DB or RemoteCentral)
I’m also curious from what HARDWARE did you generate that WINLIRC file…Can you give me the info
Currently I support only USB-UIRT but I intend to support cheap IR receiver out there for learning and blasting via the RemoteGate.py server.

Cheers
JM
 
Last edited:
  • Like
Reactions: science_student

questionmark

Senior Member
May 10, 2005
145
93
0
leiden
t..is far i have understood these codes are decimal codes(correct me if i am wrong):silly: please help me if i can use these codes to control my device from my sgs4..
If what I did in previous message did not work for the codes that does emits the GS4 IR diode, then try this:
I assume you used irrecord to learn your remote using WinLIRC. There is a switch that allow to have HEX code it seem "irrecord -a "
see

http://lirc.10951.n7.nabble.com/Howto-raw-codes-td6841.html
This format might give better results? if the decimal did not work at all for you work.

Cheers
 
  • Like
Reactions: science_student