Bose ESP88
nds2006
Posts: 10
Hi,
I am trying to control the Group function of the Bose ESP88 via serial commands.
The commands are "'SG 1,70',$0D" for setting the value in the group (valid values 0 - 90H)
and "'GG 1',$0D" for getting the value of the group.
The responce being "'GG 1,70$0D'"
What I am wanting to do is adjust the level of the group by increasing/decreasing the value.
The string coming back from the Bose is in ascii with hex values (including letters)
I have tried the following to get the responce into a decimal number to add 6(3dB) to the value each time the button is pressed, but it is not working.
DATA_EVENT[bose]
{
STRING:
{
Bose_responce = "Bose_responce,data.text"
REC_Buffer = right_string(Bose_responce,3)
nVOL = HEXTOI(REC_Buffer)
}
}
BUTTON_EVENT[tp,53]
{
PUSH:
{
send_string bose,"'GG 1',$0D"
nVOL = nVOL + 6
send_string bose,"'SG 1,',ITOA(nVOL),$0D"
}
}
Any thoughts or solutions appreciated.
Regards,
Noel
I am trying to control the Group function of the Bose ESP88 via serial commands.
The commands are "'SG 1,70',$0D" for setting the value in the group (valid values 0 - 90H)
and "'GG 1',$0D" for getting the value of the group.
The responce being "'GG 1,70$0D'"
What I am wanting to do is adjust the level of the group by increasing/decreasing the value.
The string coming back from the Bose is in ascii with hex values (including letters)
I have tried the following to get the responce into a decimal number to add 6(3dB) to the value each time the button is pressed, but it is not working.
DATA_EVENT[bose]
{
STRING:
{
Bose_responce = "Bose_responce,data.text"
REC_Buffer = right_string(Bose_responce,3)
nVOL = HEXTOI(REC_Buffer)
}
}
BUTTON_EVENT[tp,53]
{
PUSH:
{
send_string bose,"'GG 1',$0D"
nVOL = nVOL + 6
send_string bose,"'SG 1,',ITOA(nVOL),$0D"
}
}
Any thoughts or solutions appreciated.
Regards,
Noel
0
Comments
"'SG 1,',$70,$0D"