51
BEAM IR/RF Wifi transceiver / Re: BEAM documentation / news
« Last post by PegLegTV on December 14, 2022, 01:13:50 PM »Kalle, sorry I forgot to respond to yours when I got back home. the raw codes that worked never produced anything on the bottom half of the screen like your showing in the picture, so it took me a little bit to spot when a raw code was good or not just had to look for the lenth and starting numbers.
After some testing I found that if I cut the raw code down to 96 integer groupings then the commands would work and not freeze VC and restart the beam
1 2 3 4 5
102,134,32,128,36
from there I made a command in VC so I could input the raw code and the remote button name and have it create a map table with the button names and code, along with testing the new raw code. from there it was fairly easy, all I had to do was repeat that 32 times for all the buttons I wanted to learn.
only four buttons where difficult to figure out (dim,brighter, faster, slower) but after some testing I relized that they need to be repeated multiple times in order to see a difference so I just added &n=9 to the end of the raw codes and the problem with those buttons were solved.
Jitterjames, I tested the raw code you posted and I also tried your code by adding &n=2 to the end of your command but still no luck, from what I can tell it seems that anything less than 96 integer groupings the codes would not work. however after looking at the raw code with your input I did find that the code repeats twice minus the big number.
Working Power on:
Raw code borken down
102,134,32,128,36,124,40,122,41,121,42,40,121,42,121,42,120,122,41,41,121,122,42,41,121,121,42,121,43,40,122,41,121,41,121,42,120,42,120,122,41,41,121,42,120,42,1201
,55,108,52,111,128,36,125,38,124,39,123,40,122,41,41,122,41,121,42,120,122,41,41,121,121,42,41,121,122,42,121,43,40,122,41,121,41,121,42,120,42,120,122,41,41,121,42,120,42,
Beam RF code shortner commands that I used
Thank you guys for the help and input.
After some testing I found that if I cut the raw code down to 96 integer groupings then the commands would work and not freeze VC and restart the beam
1 2 3 4 5
102,134,32,128,36
from there I made a command in VC so I could input the raw code and the remote button name and have it create a map table with the button names and code, along with testing the new raw code. from there it was fairly easy, all I had to do was repeat that 32 times for all the buttons I wanted to learn.
only four buttons where difficult to figure out (dim,brighter, faster, slower) but after some testing I relized that they need to be repeated multiple times in order to see a difference so I just added &n=9 to the end of the raw codes and the problem with those buttons were solved.
Jitterjames, I tested the raw code you posted and I also tried your code by adding &n=2 to the end of your command but still no luck, from what I can tell it seems that anything less than 96 integer groupings the codes would not work. however after looking at the raw code with your input I did find that the code repeats twice minus the big number.
Working Power on:
Code: [Select]
{M:IP.Beam 2.0}/sendRFraw?code=102,134,32,128,36,124,40,122,41,121,42,40,121,42,121,42,120,122,41,41,121,122,42,41,121,121,42,121,43,40,122,41,121,41,121,42,120,42,120,122,41,41,121,42,120,42,1201,55,108,52,111,128,36,125,38,124,39,123,40,122,41,41,122,41,121,42,120,122,41,41,121,121,42,41,121,122,42,121,43,40,122,41,121,41,121,42,120,42,120,122,41,41,121,42,120,42,
Raw code borken down
102,134,32,128,36,124,40,122,41,121,42,40,121,42,121,42,120,122,41,41,121,122,42,41,121,121,42,121,43,40,122,41,121,41,121,42,120,42,120,122,41,41,121,42,120,42,1201
,55,108,52,111,128,36,125,38,124,39,123,40,122,41,41,122,41,121,42,120,122,41,41,121,121,42,41,121,122,42,121,43,40,122,41,121,41,121,42,120,42,120,122,41,41,121,42,120,42,
Beam RF code shortner commands that I used
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.3.0.3-->
<commandGroup open="True" name="Beam RF Code Shortener" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="1040" name="RF code shortener" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Action number 1 replace (PUT RAW RF CODE HERE) with your raw RF Code&#xD;&#xA;Action number 3 repeats X amout of times to set the length of the new raw code&#xD;&#xA;{1} = button name for the Maptable">
<action>
<cmdType>Results.SetVar</cmdType>
<params>
<param>NewCode</param>
<param>(PUT RAW RF CODE HERE)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<params>
<param>(\d+)</param>
<param />
<param>{Var.NewCode}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.SetVar</cmdType>
<params>
<param>Desktop</param>
<param>C:\Users\{Var.username}\Desktop\</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>File.Append</cmdType>
<params>
<param>{Var.Desktop}Code.txt</param>
<param>{Match.{i}},</param>
</params>
<cmdRepeat>96</cmdRepeat>
</action>
<action>
<cmdType>File.Read</cmdType>
<params>
<param>{Var.Desktop}Code.txt</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Map.Set</cmdType>
<params>
<param>TEST</param>
<param>{1}</param>
<param>{LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>File.Delete</cmdType>
<params>
<param>{Var.Desktop}Code.txt</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Scrape</cmdType>
<params>
<param>{M:IP.Beam 2.0}/sendRFraw?code{M:TEST.{1}}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</command>
<command id="855" name="Short RF code Test" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="{1} = Button name to test">
<action>
<cmdType>scrape</cmdType>
<params>
<param>{M:IP.Beam 2.0}/sendRFraw?code={M:TEST.{1}}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</command>
<command id="1108" name="Export TEST Map to new maptable and payload file" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="{1} = New MapTable name that you want (no spaces)&#xD;&#xA;{2} = Payload.xml file name that you want (without .xml) (stored in {Path.VC}\payloads)">
<action>
<cmdType>Map.ExportPayloadXML</cmdType>
<params>
<param>Payloads\TEST.xml</param>
<param>TEST</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>File.Read</cmdType>
<params>
<param>{Path.VC}\Payloads\TEST.xml</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegExSingle</cmdType>
<params>
<param><payload>.*?<value>(.*?)</value>.*?<phrase>(.*?)</phrase></param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.MatchToMap</cmdType>
<params>
<param>{1}</param>
<param>True</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Map.ExportPayloadXML</cmdType>
<params>
<param>Payloads\{2}.xml</param>
<param>{1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>File.Delete</cmdType>
<params>
<param>{Path.VC}\Payloads\TEST.xml</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Map.DropTable</cmdType>
<params>
<param>TEST</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Map.CreateTable</cmdType>
<params>
<param>TEST</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</command>
</commandGroup>
Thank you guys for the help and input.