Hi Nathan,
An update on the two way capabilities of slave configured HC-06 modules.
Yes, I can confirm that these can & will send messages back in addition to the expected module's AT commands.
In Android's case:
Establishing the initial bluetooth connection from Android to the HC-06 is a little tricky since if the HC-06 is not powered up and blinking red, the Android app can crash even though the absence of an available device is handled in a number of try-catch statements, but once it is connected, setting Serial.begin to the correct Baud rate of the unit and writing Serial.println('xyz'); will send that string. For Android, a separate thread needs to be set up using an instance of Handler in the onCreate method which receives incoming bytes and appends them to a string. Each of the inoming bytes are checked for end of line chars ("\r\n") and if not EOL, appended to the msg string until EOL at which point, the msg gets written to Android's display.
Cheers,
Rich.




Find content
Not Telling
