Yes.
I think the 0x01 was a command byte (either for emic or their application).
You must send the bytes in such a format as the emic requires (check emic datasheet).
So if the emic understands "say=hello"
then you can use tx.sendString("say=hello");
If the emic requires an end of command marker like 0x0D (carriage return)
then you should use tx.sendString("say=hello\r");
Comments
http://forums.parallax.com/showthread.php?p=552211
http://forums.parallax.com/showthread.php?p=553163
regards peter
char saycmd[noparse]/noparse = new char[noparse]/noparse{ 's','a','y','=','h','e','l','l','o','#'};
int index=0;
while(char[noparse][[/noparse]index]!='#')
tx.sendByte(char[noparse][[/noparse]index++]);
i don't understand what 0x01 is at the beginning of the array
can I use sendString instead?
something like
tx.sendString("say=hello");
I think the 0x01 was a command byte (either for emic or their application).
You must send the bytes in such a format as the emic requires (check emic datasheet).
So if the emic understands "say=hello"
then you can use tx.sendString("say=hello");
If the emic requires an end of command marker like 0x0D (carriage return)
then you should use tx.sendString("say=hello\r");
regards peter
0x00 text to be spoken 0xAA
Here is an example of how to say 'hello' in HEX mode:
0x00, 0x68, 0x65, 0x6C, 0x6C, 0x6F, 0xAA
The 0x00 and the 0xAA are requierd in HEX mode only.
In ASCII mode:
say=hello;
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
· tx.sendString("say=hello;");
The ; inside the string acts as terminator.
Right?
regards peter