Home AMX User Forum AMX General Discussion

Bose ESP88

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

Comments

  • yuriyuri Posts: 861
    As far as i know, there is something very 'funny' about the protocol. I can't remember exactly what is was, but it had something to do with the hexadecimal value being sent as ASCII (?)
  • drewdbdrewdb Posts: 14
    I think it's something like:

    "'SG 1,',$70,$0D"
Sign In or Register to comment.