Can you please post some examples of the messages that are coming in and the regex pattern you are using? You might have to setup a regex that captures the ascii hex value, and ensure you set hex mode to true on the capture group. Make sure you are capturing with the 'catch all' character, such as VOL(.{1,2}) rather than as digits VOL(\d{1,2}) Jarrod On Apr 28, 11:34 pm, Nahshon Williams <spc...@gmail.com> wrote: I have been creating an onkyo remote. The onkyo loves sending Hex strings. Was not sure why the regex worked for a short instant and then went crazy. Created a serial join with the same regex and it all became clear; my volume slider works when the numbers appear to be decimal then jumps to Zero when the hex notattion ABCD appear. I have ticked and unticked every hex and none hex option in GD. Any pointers anyone? Where did Fiasco go? Nahshon You received this message because you are subscribed to the Google Groups "CommandFusion" group. To post to this group, send email to comman...@googlegroups.com. To unsubscribe from this group, send email to commandfusio...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/commandfusion?hl=en.
\xF0\x00\x00\x70\x00\x00\x7F
\x00\x00\x04\x02\x00\x00\x01\x00\x00\x01\x00\x01\x00\x32\x2F\xF7
\xF0\x00\x00\x70\x00\x00\x7F
\x00\x00\x04\x02\x00\x00\x01\x00\x00\x01\x00\x01\x00\x00\x7D\xF7
This is the response that is generated by Russound to indicate the
maximum and minimum volume levels \x00 - \x32 (0-50).
the second to last byte is the checksum and the \xF7 is the EOM
If I want to enter the third from last byte to an analogue join I was
expecting I would need something along the lines of
^\xF0\x00\x00\x70\x00\x00\x7F
\x00\x00\x04\x02\x00\x00\x01\x00\x00\x01\x00\x01\x00(\x2)?.\\xF7
Where am I going wrong?
\xF0\x00\x00\x70\x00\x00\x7F
\x00\x00\x04\x02\x00\x00\x01\x00\x00\x01\x00\x01\x00(.).\xF7
Then assign a single capture group, setting it to:
capture index = 1
datatype = analog
target = analog
join = join of your gauge or slider
min = 0
max = 50
hex mode = true
Jarrod
On May 27, 11:50 pm, James S Davis <jamessda...@dystopiandream.co.uk>
wrote:
The \xF7 is just to tell the RegEx that anything after that is
something else, you would then specify that in the EOM section of the
system properties?
If I was expecting a response that contained several different pieces
of information each stored in a different byte would I just make
several different RegEx one set to capture each byte ( as Below)
\xF0\x00\x00\x70\x00\x00\x7F
\x00\x00\x04\x02\x00\x05\x07\x00\x00\x01\x00\x0C\x00\x00\x00\x00\x0A
\x0A\x00\x0A\x00\x00\x00\x00\x00\x3C\xF7
\xF0\x00\x00\x70\x00\x00\x7F
\x00\x00\x04\x02\x00\x05\x07\x00\x00\x01\x00\x0C\x00\x(Zone State)
\x(Source)\x(Volume)\x(Bass)\x(Treble)\x(Loudness)\x(Balance)\x(System
State)\x(Shared Source)\x(Party Mode)\x(Do Not Disturb)\x00\x3C\xF7
Zone State
\xF0\x00\x00\x70\x00\x00\x7F
\x00\x00\x04\x02\x00\x00\x01\x00\x00\x01\x00\x01\x00(.).\xF7
capture index = 1
datatype = Digital
target = Digital
join = join of on off button
off valu = 00
on value = 01
Source
\xF0\x00\x00\x70\x00\x00\x7F
\x00\x00\x04\x02\x00\x05\x07\x00\x00\x01\x00\x0C\x00\x00(\x00)?(\x01)?
(\x02)?(\x03)?(\x04)?(\x05)?.\xF7
capture index = 1
datatype = Digital
target = Digital
join = join of source 1 button
off valu =
on value = \x00
capture index = 2
datatype = Digital
target = Digital
join = join of source 2 button
off valu =
on value = \x01
capture index = 3
datatype = Digital
target = Digital
join = join of source 3 button
off valu =
on value = \x02
capture index = 4
datatype = Digital
target = Digital
join = join of source 4 button
off valu =
on value = \x03
capture index = 5
datatype = Digital
target = Digital
join = join of source 5 button
off valu =
on value = \x04
capture index = 6
datatype = Digital
target = Digital
join = join of source 6 button
off valu =
on value = \x05
Volume
\xF0\x00\x00\x70\x00\x00\x7F
\x00\x00\x04\x02\x00\x05\x07\x00\x00\x01\x00\x0C\x00\x00\x00(.).\xF7
capture index = 1
datatype = analog
target = analog
join = join of your gauge or slider
min = 0
max = 50
hex mode = true
I see no need for any of the other information for what ? have in mind
Thank you
Welcome back Fiasco!!
Objective:
To seamlessly change volume on onkyo with slider (similar to apple
remote app)
Resources:
Please find attached a gui file for my network controlled Onkyo TXNR5007.
Here is an example of what I mean
http://www.vandermehrn.com/lc/onkyo/volumefeedback/
This is a file with ALL the feedback from the onkyo as volume is
changed. (I use notepad++ as it can show non printing characters)
http://www.vandermehrn.com/lc/onkyo/hex/Onkyo_Volume_Full_Range
Here is the gui file just in case it does not attach on the group:
http://www.vandermehrn.com/lc/onkyo/volumefeedback/onkyo.rar
Notes:
Feedback is workin with analog and digital joins
*My problem is with getting the guage to work. I have tried every
permutation of Hex String and Non Hex.*
Please note I have also changed the regex in the image above to
.*!1MVL.* (currently on the GUI)
I have also displayed the feedback from the onkyo on the remote itself.
For now I only have an interface for FM/Tuner. The other inputs are to
highlight that each button is set to active when the onkyo changes inputs.
I wanted to post on my onkyo thread but as we are talking about hex
strings I decided to try here in case people search from the google group
Any hints appreciated
Nahshon
.*!1MVL(.*)\x1A
.*!1MVL(.*)\x1A.*
\x1A is the SUB character the onkyo terminates feedback with (as shown
on the screen shot in my previous post)
I am using yours all the same with HEX=True on the capture group.
There is no jumping on the guage when hex values are received now :-)
For anyone with an Onkyo that goes from 0-64 Hex please note that I was
only able to get the guage/slider to scale properly when I set the Min=0
and Max=100 in the regex.
It seems that selecting Hex means captured values will be converted to
Decimal as (64 Hex = 100 decimal)
Setting Min=0 and Max=64 in the regex meant that my slider/guage was
reaching maximum when I got to 40 Hex.
The network response from the onkyo is very fast.
Nahshon