As a true novice to serial communications I would sincerely appreciate any help.
I am trying to communicate with a piece of Xantech audio gear which communicates via ascii as follows:
Command for Volume increment is !2VI+ where all commands begin with ! and end with +. The number 2 is the zone and VI represents Volume Increment. Pretty easy!
The only way I get it to work is to convert it to hex as
hs.Send To Comport(4), chr(&H21) & chr(&H32) & chr(&H56) & chr(&H49) & chr(&H2B)
Is there a way to send it as "!2VI+"?
If not, how would I send a value higher than 9 in the example where I want to set volume to a specific value such as the command to set volume to 14: in ascii its "!2VO14+" Since it won't take an additional chr(&Hxx), how would I write 14 in one character: chr(&H??)?
Thanks in advance for anyone with the patience to help a true neophyte.
Rick
I am trying to communicate with a piece of Xantech audio gear which communicates via ascii as follows:
Command for Volume increment is !2VI+ where all commands begin with ! and end with +. The number 2 is the zone and VI represents Volume Increment. Pretty easy!
The only way I get it to work is to convert it to hex as
hs.Send To Comport(4), chr(&H21) & chr(&H32) & chr(&H56) & chr(&H49) & chr(&H2B)
Is there a way to send it as "!2VI+"?
If not, how would I send a value higher than 9 in the example where I want to set volume to a specific value such as the command to set volume to 14: in ascii its "!2VO14+" Since it won't take an additional chr(&Hxx), how would I write 14 in one character: chr(&H??)?
Thanks in advance for anyone with the patience to help a true neophyte.
Rick
Comment