Driver for the JY-MCU v1.06 HC-06 Bluetooth module.

Dependents:   DISCO-F746NG_rtos_test MbedTableControl

Changes

RevisionDateWhoCommit message
21:cce827364df1 2016-08-08 Weimen Li Converted std::queue to RTOS's Queue to pass information from receivedByteISR to receivedByteThread, as std::queue is not ISR-safe. default tip
20:13283edd1aba 2016-08-08 Weimen Li Integrated RTOS threading into receiveByteISR. This should ensure that the ISR executes quickly, so it is always ready to receive the next character, even if the client's receiveLine function takes a long time to run.
19:41da4bfc4d4d 2016-08-05 Weimen Li Implemented method to print and println a std::string object.
18:85c0f6580cd8 2016-08-05 Weimen Li Revised data RX ISR to read all the characters available first into a queue, ensuring we don't miss any. Also process the system using std containers rather than arrays, providing for greater safety.
17:63261635b153 2016-08-03 Electrotiger 0-Initialized dataReceivedBufferPos.
16:1030b80a28f4 2016-08-03 Electrotiger Correct Header file placed in.
15:6a0aeaa39291 2016-08-03 Electrotiger Fixed bug where dataReceivedBufferPos was not 0-initialized, leading to spontaneous errors on memcpy.
14:73e799413e66 2016-08-03 Electrotiger Fixed bug where dataReceivedBufferPos was not incremented on receiving a line, leading to an off-by-one error for callers.
13:5768b18a1289 2016-08-03 Electrotiger Fixed bug where baud rate was being set incorrectly.
12:5ba022adbbfb 2016-08-02 Electrotiger Allowed user to set the Baud rate in the constructor.
11:aeb8c5c27111 2016-08-02 Electrotiger Updated line callback function to also accept the length of the read string.
10:b0a0a82a9ff5 2016-08-02 Electrotiger Removed references to FRDM-K22F Pins in header file. ; Deleted outdated example code.
9:3e23f3f615f2 2016-06-19 Electrotiger Implemented routine to detect the previous baud rate in setup() and change it, since no hard reset line is available on the HC-06 module. Note that this does not also detect parity or stop bits, so it is assumed that the user has not changed that.;
8:14bf9b541f9a 2016-06-16 Electrotiger Now tested. ; ; TODO: Ensure the setup function works when attempting to deal with different baud rates.
7:95bbfc340a1a 2016-06-09 Electrotiger Added comment that buffer should be null-terminated.
6:5ba0038a7a9a 2016-06-09 Electrotiger Fixed error with merging branches (I should have deleted the other branch.)
5:f169dd551a3a 2016-06-07 Electrotiger Merged branches
4:67a98dd0225e 2016-06-07 Electrotiger Reverted back from inheriting RawSerial, as that would break the automatic newLine callback if the user decides to read from the serial port.
3:ee17212e838e 2016-06-07 Electrotiger Revised class to inherit from RawSerial, since it is just a wrapper for a serial object.
2:7e0453895727 2016-06-07 Electrotiger Removed setCallback, and integrated it into the constructor;; Wrote testing code, but still needs testing.;
1:026034717620 2016-06-06 Electrotiger First draft, untested.
0:3ab5e47dde1e 2016-06-05 Electrotiger Continuing Writing Library