Hi Vserducan,

I saw the the HC-06 is a Bluetooth slave device only while the HC-05 can also 
be used as master. I ordered both to see if I could make one library to support 
both the HC-05 and the HC-06. I need to dive into some details about the master 
mode since slave only is easier to use.

It will take at least 6 weeks since I ordered them in China. That would give me 
sufficient time to write the library 🙂.

If it is ready and works, I will most likely make a video and post it on Jallib 
& Jallist.

Kind regards,

Rob



________________________________
Van: [email protected] <[email protected]> namens vsurducan 
<[email protected]>
Verzonden: zaterdag 20 februari 2021 10:12
Aan: [email protected] <[email protected]>
Onderwerp: Re: [jallib] Library for HC-06 Module?

Hi Rob,
Yes indeed, there are several PIC microcontrollers with up to 4  EUSART, on 
those debugging and controlling BLE should be easier...
Testing the whole HC06 command set using an FTD module and a terminal installed 
on a laptop is a good idea...:)
have a nice time!

On Sat, Feb 20, 2021 at 10:41 AM Rob CJ 
<[email protected]<mailto:[email protected]>> wrote:
Hi Vsurducan,

Interesting.

I looked at some examples on the HC-06 also on Youtube (all with Arduino of 
course) and you see people struggle with the Arduino board since the serial 
interface is also used to program the Arduino and so they need to disconnect 
the module when they program it. Nice to have a separate programmer in that 
case. You may remember that I made some kind of Arduino Uno board for JAL 
(JALPIC One) but that uses the programming pins for programming the PIC so you 
can still use the serial interface.

I downloaded some documentation of the HC-06 and I think it is a nice module to 
use so I think I will start with a JAL library for the HC-06.

Kind regards,

Rob

________________________________
Van: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> namens vsurducan 
<[email protected]<mailto:[email protected]>>
Verzonden: zaterdag 20 februari 2021 08:49
Aan: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>
Onderwerp: Re: [jallib] Library for HC-06 Module?

Hi Rob,
In 2016 or so, I had a soil moisture sensor project solar powered, using HC 11 
BLE for data transmission.
A few thoughts about this is here (maybe it helps to set the device as 
peripheral, as central unit or to initiate a data transmission) : 
https://www.researchgate.net/publication/322078600_Efficient_low-power_wireless_communication_setup_for_an_autonomous_soil_moisture_sensor/link/5a48d02f458515f6b0578f9d/download

Each HC BLE has a different AT command set. Some of the commands are documented 
in the producer datasheet some others are not.
There are also devices with the same name (aka HC 11) but with different 
command sets, produced by different vendors.
The most challenging was to put BLE on sleep and wake it at the requested time, 
because even though it's a low power, it drives quite much (17mA or so) during 
transmission.

A library will be good. :)  However it might work just for the HC06 tested...


A typical sequence for defining some operating modes using constants:
const byte BLEmode [] = "AT+MODE0"
const byte BLEimme [] = "AT+IMME1"
const byte BLEwake_up[] = "wakeu"
const byte BLEreset[] = "AT+RESET"
const byte BLEcentral[] = "AT+ROLE1"
const byte BLEdisconnect[] = "AT"
const byte BLEperipheral[] = "AT+ROLE0"
const byte BLEsleep[] = "AT+SLEEP"
const byte BLERFpower[] = "AT+POWE2" ; 0dBm
const byte BLEname[] = " MS1 "
const byte BLEset_name[] = "AT+NAMEMS1"
const byte BLEconnect[] = "AT+CON884AEA6A0DA9"

or a procedure for waking up the module (writing anything for a sufficient long 
time):
procedure BLEwake is
 for 20 loop
   print_string (serial_hw_data, BLEwake_up)
 end loop
end procedure


On Fri, Feb 19, 2021 at 8:16 PM [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> wrote:
Hi all,

I saw a question about a library for the HC-06 Module which is a bluetooth 
module. I had a quick look at the description and it does not seem to be a very 
complex device but a library could make life a bit easier.

I was wondering if - besides the one question I have seen about this module - 
if there are more people that would like to have a library for this module.

If so, let me know. i can give it a try (unless someone already created a 
library of course).

Kind regards,

Rob


--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/d6eff2a3-71af-4172-ad2b-9f9590b3cef6n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/d6eff2a3-71af-4172-ad2b-9f9590b3cef6n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/CAM%2Bj4qvT%3DcVrM%2Bzui-FjKT1jjU8UC0XnEXEs4FDas_0UTLAgdA%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CAM%2Bj4qvT%3DcVrM%2Bzui-FjKT1jjU8UC0XnEXEs4FDas_0UTLAgdA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/AM0PR07MB6241D8C1BF1CB956F7643F18E6839%40AM0PR07MB6241.eurprd07.prod.outlook.com<https://groups.google.com/d/msgid/jallib/AM0PR07MB6241D8C1BF1CB956F7643F18E6839%40AM0PR07MB6241.eurprd07.prod.outlook.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/CAM%2Bj4qtHDhWb-e7CRhMNy_zX4Wbjrkg2Px0kJxv%3D2zcigk8v2Q%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CAM%2Bj4qtHDhWb-e7CRhMNy_zX4Wbjrkg2Px0kJxv%3D2zcigk8v2Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/AM0PR07MB62412E3B0327D8E428CD6C72E6839%40AM0PR07MB6241.eurprd07.prod.outlook.com.

Reply via email to