JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

How to convert Winlirc codes to Slingbox 350 bin file?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> Slingbox
View previous topic :: View next topic  
Author Message
Quozon



Joined: 05 Apr 2013
Posts: 8

                    
PostPosted: Fri May 03, 2013 9:42 am    Post subject: How to convert Winlirc codes to Slingbox 350 bin file? Reply with quote

Hello everyone,

I was able to obtained the Winlirc code for my Skykit SK11 Satellite tuner remote from an IR receiver through MIC input AudioCapture.dll plugin, but was wondering if it can convert to Slingbox custom bin file for my Slingbox 350? If anyone know how to do the conversion, please teach me. Below I attached the Winlirc cfg and raw codes. Hopefully I have captured the codes correctly able to do analysis.


<Skykit.cfg>
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0(audio) on Fri May 03 22:40:50 2013
#
# contributed by
#
# brand: ..\Skykit.cfg
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name ..\Skykit.cfg
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100

one 913 877
zero 913 877
plead 930
gap 113848
toggle_bit_mask 0x0

begin codes
Power 0x1F41
1 0x1760
2 0x1F50
3 0x1770
4 0x1F48
5 0x1768
6 0x1F58
7 0x1778
8 0x1F44
9 0x1764
0 0x1F40
Sound 0x1775
Cancel 0x1F45
Up 0x1761
Down 0x1F69
Left 0x1751
Right 0x1F49
Enter 0x1773
ChannelList 0x1F79
Info 0x176A
Red 0x1F56
Green 0x1776
Yellow 0x1F4E
Blue 0x176E
Ch+ 0x1761
Ch- 0x1769
Record 0x1762
Play 0x1F52
Stop 0x177A
FF 0x1F4A
FR 0x1772
SlowPlay 0x1F42
Pause 0x1746
ScreenPause 0x1F43
Replay 0x1766
Fav 0x1F4D
ZoomIn 0x175D 0x1F5D
History 0x1765
Menu 0x1759
end codes

end remote


<SkykitRawcodes>
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0(audio) on Fri May 03 22:23:28 2013
#
# contributed by
#
# brand: ..\SkykitRawcodes.cfg
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name ..\SkykitRawcodes.cfg
flags RAW_CODES|CONST_LENGTH
eps 30
aeps 100

gap 113845

begin raw_codes

name Power
31 83 968 822 1864 1729
958 833 947 843 1843 1739
1833 854 937 854 937 854
937 854 937 1750 937

name 1
31 83 968 718 10 93
968 833 958 833 958 833
947 843 1843 1739 947 843
1833 854 937 854 937 854
937 854 937

name 2
31 83 968 822 1854 1739
947 843 947 843 1843 1739
1833 1750 1833 854 937 854
937 854 937

name 3
20 93 958 833 958 833
958 833 958 833 947 843
1843 1739 947 843 947 843
1833 854 937 854 937 854
937

name 4
968 822 1854 1729 958 833
958 833 1843 1739 1843 843
947 1739 1833 864 927 864
927

name 5
958 833 958 833 958 833
958 833 947 843 1843 1750
937 854 1822 1760 1822 864
927 864 927

name 6
958 833 1854 1729 958 833
958 833 1843 1750 1833 1739
937 864 1822 864 927 864
927

name 7
947 843 947 843 947 843
947 843 947 843 1833 1750
937 854 937 854 937 854
1822 864 927 864 927

name 8
31 93 968 708 10 104
1854 1729 958 833 958 833
1843 1739 1843 854 937 854
937 1750 1822 864 927

name 9
489 10 31 10 31 20
62 10 52 52 52 968
93 52 62 593 20 979
72 1718 62 1739 41 1739
62 3520 62 1718 83 52
10 31 20 2500 62 2614
72 10 10 52 10 20
10 62 10 31 10 20
10 281 10 2052 239 20
31 10 20 10 10 31
20 72 10 52 31 62
10 20 31 93 10 10
10

name 0
31 83 968 822 1864 1729
958 833 947 843 1843 1739
1833 854 937 854 937 854
937 854 937 854 937

name Sound
20 93 968 822 958 833
958 833 958 833 958 833
1843 1739 947 843 947 854
1822 1760 1822 1760 927

name Cancel
41 83 968 822 1864 1718
958 833 958 843 1843 1739
1833 854 937 854 937 1750
1833 1750 937

name Up
31 83 968 104 10 708
968 822 968 822 958 833
958 833 1854 1739 947 843
1833 854 937 854 937 854
937 1750 937

name Down
20 93 968 822 1854 1729
958 833 958 833 1843 1739
947 843 1843 1750 1822 864
927 1750 937

name Left
958 843 947 843 937 854
937 854 937 854 1822 1760
1812 1781 1802 885 906 885
895 1791 895

name Right
31 93 968 822 1854 1729
958 833 958 833 1843 1739
1843 843 947 1739 1843 854
927 1760 927

name Enter
31 93 958 833 958 833
958 833 958 833 958 833
1843 1739 947 843 947 843
1833 854 937 1750 937 854
937

name ChannelList
968 822 1854 1729 958 833
958 833 1843 1739 947 843
947 843 947 854 1822 864
927 1750 937

name Info
916 875 916 885 906 885
906 885 895 895 1791 1791
895 906 1770 1812 1760 1822
1760

name Red
947 843 1843 1739 947 843
947 843 1833 1750 1833 1750
1833 1750 927 864 1822

name Green
20 93 958 833 958 833
958 833 958 833 958 833
1843 1739 947 843 947 843
1833 1750 937 854 1833

name Yellow
31 93 968 822 1854 1729
958 833 958 833 1843 1750
1833 854 937 1750 927 864
927 864 1822

name Blue
31 83 968 822 968 822
968 833 958 833 947 843
1843 1739 947 843 1833 1750
937 854 937 854 1833

name Ch+
958 833 958 833 958 833
947 843 947 843 1843 1739
947 843 1833 854 937 854
937 854 937 1750 927

name Ch-
927 864 1812 1770 916 875
916 875 1812 1781 895 895
1791 1791 1781 906 885 1802
885

name Record
947 843 947 843 937 864
927 864 927 864 1812 1770
916 875 1812 875 906 885
906 1781 1802

name Play
958 833 1854 1729 947 843
947 843 1843 1739 1833 1750
1833 854 937 1750 1822

name Stop
885 906 875 916 875 916
875 916 875 916 1760 1822
875 916 864 927 864 927
1760 1822 1750

name FF
31 83 968 822 1864 1729
947 843 947 843 1843 1739
1833 854 937 1750 1833 1750
1833

name FR
906 885 906 885 906 885
906 885 895 895 1791 1791
895 895 895 895 1781 906
885 1802 1781

name SlowPlay
947 843 1843 1739 947 843
947 843 1833 1750 1833 854
937 864 927 864 916 1760
1822

name Pause
958 833 958 833 947 843
947 843 947 843 1843 1739
1833 854 937 854 937 1750
937 854 1822

name ScreenPause
916 875 1812 1770 916 875
916 875 1802 1781 1802 885
906 885 906 885 906 1781
906 885 895

name Replay
41 1739 52 1739 31 10
10 1750 20 10 10 1770
10 1750 41 3562 10 10
10

name Fav
958 833 1843 1750 937 854
937 854 1833 1750 1822 864
927 1760 927 864 1812 1770
916

name ZoomIn
20 93 968 822 958 833
958 833 958 833 958 833
1843 1739 1843 1739 947 843
947 843 1833 1760 927

name History
958 833 1854 1729 947 843
947 843 1843 1739 937 854
1833 854 937 1750 1822 1760
927

name Menu
31 93 968 822 958 833
958 833 958 833 958 833
1843 1739 1843 1739 947 843
1833 864 927 1760 927

end raw_codes

end remote


Thanks.
Back to top
View user's profile Send private message
vickyg2003
Site Admin


Joined: 20 Mar 2004
Posts: 7073
Location: Florida

                    
PostPosted: Fri May 03, 2013 3:19 pm    Post subject: Reply with quote

Hm, it does say RC5
but then it says 13bits.

Correction -
I was confused between RC-5 and RC5


RC- 5 is defined as
IRP notation: {36k,msb,889}<1,-1|-1,1>(1:1,~F:1:6,T:1,D:5,F:6,^114m)+

The RC5 code is a 14-bit word bi-phase coded signal (See Figure 2). The two first bits are start bits, always having the value one. The next bit is a control bit or toggle bit, which is inverted every time a button is pressed on the remote control transmitter.
-----------------------------------------------------------

This is an RC5 code


? T dev-- function
1 1 11101 000001 Power 0x1F41
1 0 11101 100000 1 0x1760
1 1 11101 010000 2 0x1F50
1 0 11101 110000 3 0x1770
1 1 11101 001000 4 0x1F48
1 0 11101 101000 5 0x1768
1 1 11101 011000 6 0x1F58
1 0 11101 111000 7 0x1778
1 1 11101 000100 8 0x1F44
1 0 11101 100100 9 0x1764
1 1 11101 000000 0 0x1F40
1 0 11101 110101 Sound 0x1775
1 1 11101 000101 Cancel 0x1F45
1 0 11101 100001 Up 0x1761
1 1 11101 101001 Down 0x1F69
1 0 11101 010001 Left 0x1751
1 1 11101 001001 Right 0x1F49
1 0 11101 110011 Enter 0x1773
1 1 11101 111001 ChannelList 0x1F79
1 0 11101 100101 Info 0x176A
1 1 11101 010110 Red 0x1F56
1 0 11101 110110 Green 0x1776
1 1 11101 001110 Yellow 0x1F4E
1 0 11101 101110 Blue 0x176E
1 0 11101 100001 Ch+ 0x1761
1 0 11101 101001 Ch- 0x1769
1 0 11101 010010 Record 0x1762
1 1 11101 110010 Play 0x1F52
1 0 11101 111010 Stop 0x177A
1 1 11101 001010 FF 0x1F4A
1 0 11101 110010 FR 0x1772
1 1 11101 000110 SlowPlay 0x1F42
1 0 11101 000011 Pause 0x1746
1 1 11101 000011 ScreenPause 0x1F43
1 0 11101 100110 Replay 0x1766
1 1 11101 001101 Fav 0x1F4D
1 0 11101 011101 ZoomIn 0x175D 0x1F5D
1 0 11101 100101 History 0x1765
1 0 11101 011001 Menu 0x1759
_________________
Remember to provide feedback to let us know how the problem was solved and share your upgrades.

Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
Back to top
View user's profile Send private message Visit poster's website
vickyg2003
Site Admin


Joined: 20 Mar 2004
Posts: 7073
Location: Florida

                    
PostPosted: Sat May 04, 2013 7:08 am    Post subject: Reply with quote

Here is an RDMU file that might work. Give this a try.

http://www.hifi-remote.com/forums/dload.php?action=file&file_id=11888

This sends a 14 bit sequence

1
1
t Toggle
5 digit device
6 digit functionl
_________________
Remember to provide feedback to let us know how the problem was solved and share your upgrades.

Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
Back to top
View user's profile Send private message Visit poster's website
Quozon



Joined: 05 Apr 2013
Posts: 8

                    
PostPosted: Mon May 06, 2013 9:15 am    Post subject: Reply with quote

Hello Vickyg2003,

Thanks for your great help.
I have tried the RDMU file that you provided, loaded in remotemaster, selected Remote: Slingbox with UEI PL Chip, export binary upgrade, and load into slingbox 350, but didn't work. I wonder whether I have captured the lirc codes correctly.

Below are my plugin setup for the audiocapture.dll in winlirc.

Input: External Microphone (Conexant 2
Format: 44.1KHz, Mono, 8-bit
Channel: Left Channel
Noise offset: 10
Invert Audio Signal: Tick

I appreciate you can help to check where I did wrong and if you need further info to analysis, please let me know.

Thanks.
Back to top
View user's profile Send private message
Quozon



Joined: 05 Apr 2013
Posts: 8

                    
PostPosted: Mon May 06, 2013 9:40 am    Post subject: Reply with quote

Further test here.

I have untick the "Invert Audio Signal" and retry the irrecord.exe. It shows below.

----------------------------------------------------------------------------------
Found const length: 113876
Please keep on pressing buttons like described above.
................................................................................

RC-6 remote control found.
No header found.
No repeat code found.
Signals are biphase encoded.
Signal length is 122
Checking for toggle bit mask.
Please press an arbitrary button repeatedly as fast as possible.
Make sure you keep pressing the SAME button and that you DON'T HOLD
the button down!.
If you can't see any dots appear, then wait a bit between button presses.

Press RETURN to continue.

No toggle bit mask found.
But I know for sure that RC6 has a toggle bit!
D:\Winlirc>
-----------------------------------------------------------------------------

Above I tried many times, but I never able get to the stage that allow me to record the IR signal for each remote control buttons.
Back to top
View user's profile Send private message
vickyg2003
Site Admin


Joined: 20 Mar 2004
Posts: 7073
Location: Florida

                    
PostPosted: Tue May 07, 2013 5:24 am    Post subject: Reply with quote

[quote="Quozon" I wonder whether I have captured the lirc codes correctly.
[/quote]
Did the captures work the box?


I really don't know anything about lirc. I did read the description of RC5 at
http://www.atmel.com/Images/doc1473.pdf which seemed to match the signal information that you had posted.


I may have misinterpreted what is menat by the Lirc, but if the lirc itself isn't working then I don't know how to proceed.
_________________
Remember to provide feedback to let us know how the problem was solved and share your upgrades.

Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
Back to top
View user's profile Send private message Visit poster's website
Quozon



Joined: 05 Apr 2013
Posts: 8

                    
PostPosted: Tue May 07, 2013 9:07 am    Post subject: Reply with quote

Hello Vickyg2003,

Thanks for your great help in working out the codes. I found out there was something wrong for above lirc codes that I captured previously. I tried it in my winlirc to control PC media player classic, but found out it didn't work. So I tried my IR receiver on another PC and the captured lirc codes was different than before. Maybe my first PC's mic input wasn't working properly. This time the new lirc codes works for me to control PC's media player classic. I hope you can look at the new lirc codes that I captured and convert to rmdf once more for me to try. Please see below for the new captured lirc codes.


# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0(audio) on Tue May 07 22:50:09 2013
#
# contributed by
#
# brand: ..\skykit.cfg
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name ..\skykit.cfg
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100

one 895 896
zero 895 896
plead 1029
gap 113855
toggle_bit_mask 0x800

begin codes
power 0x1741
1 0x1760
2 0x1750
3 0x1770
4 0x1748
5 0x1768
6 0x1758
7 0x1778
8 0x1744
9 0x1764
0 0x1740
sound 0x1775
cancel 0x1745
up 0x1761
down 0x1769
left 0x1751
right 0x1749
enter 0x1773
channellist 0x1779
info 0x176A
red 0x1756
green 0x1776
yellow 0x174E
blue 0x176E
ch+ 0x1761
ch- 0x1769
record 0x1762
play 0x1752
stop 0x177A
ff 0x174A
rw 0x1772
slowplay 0x1742
pause 0x1746
screenpause 0x1743
replay 0x1766
fav 0x174D
zoomin 0x175D
history 0x1765
menu 0x1759
end codes

end remote


Thanks.
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1415
Location: Munich, Germany

                    
PostPosted: Tue May 07, 2013 12:41 pm    Post subject: Reply with quote

Well, there is lirc2xml, which will transform the lirc file to "white man's language". Here is the last lirc file, run through lirc2xml. "xml" should not be consider as yet another program format, but a format that can be read and understood both by machines and humans. As can be read from that files, the captured signals are all RC5 signals with device = 29 and different obc's. Here is the complete list (just by editing the xml file):

power 1
1 32
2 16
3 48
4 8
5 40
6 24
7 56
8 4
9 36
0 0
sound 53
cancel 5
up 33
down 41
left 17
right 9
enter 51
channellist 57
info 42
red 22
green 54
yellow 14
blue 46
ch+ 33
ch- 41
record 34
play 18
stop 58
ff 10
rw 50
slowplay 2
pause 6
screenpause 3
replay 38
fav 13
zoomin 29
history 37
menu 25

Interestingly enough, not really RC5, since the toggle T is always 0.
For the background, see the thread quoted above. Let me just recapture that the LIRC format is basically undocumented (yes, I know the winlirc documentation, it is just that I do not trust it), and only LIRC knows how to interpret it -- so the idea behind Lirc2xml is to let LIRC do the job! (Vicky, does it sound familiar? Wink )
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vickyg2003
Site Admin


Joined: 20 Mar 2004
Posts: 7073
Location: Florida

                    
PostPosted: Tue May 07, 2013 5:25 pm    Post subject: Reply with quote

Hey Barf, thanks for jumping in with the LIRC help, but after looking at the first LIRC and then the RAW LIRC, I see that the HEX needs to be Complemented to be used.

So I think I solved the problem by changing from LSB to LSB-Comp.

These make a little more sense. We are still guessing at the frequency, and the timings might need to be tweaked, but this is looking better.

I've updated the RDMU file with the LSB Comp settings.

http://www.hifi-remote.com/forums/dload.php?action=file&file_id=11888
_________________
Remember to provide feedback to let us know how the problem was solved and share your upgrades.

Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
Back to top
View user's profile Send private message Visit poster's website
Quozon



Joined: 05 Apr 2013
Posts: 8

                    
PostPosted: Wed May 08, 2013 8:32 am    Post subject: Reply with quote

Hello Vickyg2003 and Barf,

Thanks again for your great help.

There's a good progress on the updated rdmu file that you provided.

All the buttons that I tried from the slingbox 350 remote (all the keys i recorded wasn't shown visible on the slingbox remote, but partial). Most the buttons doesn't work, except the "play" button. When I pressed the "play" button, it work as an "enter" from the actual remote.

I hope this feedback could help you to figure the rest out.

Thanks.
Back to top
View user's profile Send private message
vickyg2003
Site Admin


Joined: 20 Mar 2004
Posts: 7073
Location: Florida

                    
PostPosted: Thu May 09, 2013 6:28 pm    Post subject: Reply with quote

Quozon wrote:
Most the buttons doesn't work, except the "play" button. When I pressed the "play" button, it work as an "enter" from the actual remote.


I went crazy trying to find what went wrong.

Then I messed up my "working copy" of the upgrade, and decided to download the information from the file section here, only to see that the OBC's all recalculated for some odd reason. So it is very lucky for us that the Play actually did something, or we would be traveling down the wrong road.

http://www.hifi-remote.com/forums/dload.php?action=file&file_id=11888

Good luck
Back to top
View user's profile Send private message Visit poster's website
Quozon



Joined: 05 Apr 2013
Posts: 8

                    
PostPosted: Fri May 10, 2013 11:05 am    Post subject: Reply with quote

Hello Vickyg2003,

Thanks again for your great help.

This time I tried your update file and it works great!!!! Thank you millions Smile

About all the buttons are working correctly, just that couple button didn't work as it suppose to be and appreciate you can make some adjustment.

When press the record button, it worked as play.
When press the the Play button, it worked as rewind.

Also when I disconnect and then re-connect into my slingbox, the remote won't work anymore. I have to reupload the bin file into the slingbox in order to get it work. Is this normal or did I uploaded the file incorrectly?

What I did was in remote master, I selected slingbox PL version for my slingbox350, device as satellite and then export to a file name S0000_PL.BIN. In slingbox setup, I choice device type as satellite and then selected custom to upload the S0000_PL.BIN file from my local drive.

Thanks.
Back to top
View user's profile Send private message
vickyg2003
Site Admin


Joined: 20 Mar 2004
Posts: 7073
Location: Florida

                    
PostPosted: Fri May 10, 2013 12:07 pm    Post subject: Reply with quote

Quozon wrote:


When press the record button, it worked as play.
When press the the Play button, it worked as rewind.


Oops, a little hex to binary conversion problem. I guess I should play more sudoku to keep my brain from rusting.

Here is the final version

http://www.hifi-remote.com/forums/dload.php?action=file&file_id=11888



Quote:

Also when I disconnect and then re-connect into my slingbox, the remote won't work anymore. I have to reupload the bin file into the slingbox in order to get it work. Is this normal or did I uploaded the file incorrectly?

What I did was in remote master, I selected slingbox PL version for my slingbox350, device as satellite and then export to a file name S0000_PL.BIN. In slingbox setup, I choice device type as satellite and then selected custom to upload the S0000_PL.BIN file from my local drive.

Thanks.


We'll need Alan's help on that. I don't really know what a slingbox is, much less how it is supposed to work.
_________________
Remember to provide feedback to let us know how the problem was solved and share your upgrades.

Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
Back to top
View user's profile Send private message Visit poster's website
alanrichey
Expert


Joined: 24 Mar 2008
Posts: 3529
Location: UK/USA

                    
PostPosted: Fri May 10, 2013 12:18 pm    Post subject: Reply with quote

Quote:
Also when I disconnect and then re-connect into my slingbox, the remote won't work anymore. I have to reupload the bin file into the slingbox in order to get it work. Is this normal or did I uploaded the file incorrectly?
Not sure, might be a broken Slingbox or may be related to my next point.

Quote:
What I did was in remote master, I selected slingbox PL version for my slingbox350, device as satellite and then export to a file name S0000_PL.BIN. In slingbox setup, I choice device type as satellite and then selected custom to upload the S0000_PL.BIN file from my local drive.
Don't use S000, that is not a valid code. Use something between S2001 and S2046
Back to top
View user's profile Send private message
vickyg2003
Site Admin


Joined: 20 Mar 2004
Posts: 7073
Location: Florida

                    
PostPosted: Fri May 10, 2013 12:53 pm    Post subject: Reply with quote

Thanks Alan,
I didn't know that 0000 was not a valid setup number. I updated the number on this so that when the bin is built it will be S2003.

Vicky
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> Slingbox All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control