Hi Said, Good to hear.
I started with a Library. Since you are using a library from Bert, it can most likely not be used as library for JAL. I will upload the library as soon as I have tested it. I am waiting for the components but that will take some time befor they arrive. I already did some tesst with the library using a terminal emulator program where I simulating the response of the HC-06. I am interested in the program that you wrote so that I can check if the commands that I use are correct so you can send it to me directly if you want. My e-mail address van be found in this response. Thanks. Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens Djibril Sall <[email protected]> Verzonden: dinsdag 23 februari 2021 10:25 Aan: [email protected] <[email protected]> Onderwerp: Re: [jallib] Library for HC-06 Module? Hello all! I wrote a program for hc-06 module and it's works very well with PIC 16f877A, I used the libraries 16f877a_bert, hardware_serial and a application for appinventor what created! My only problem is, I don't now how to create a library! Your help is welcome and I'm sorry for my English! Le 2021-02-20 17:52, "Rob CJ" <[email protected]<mailto:[email protected]>> a écrit : Hi Vsurducan, I already started and it seems doable. There are similarities with the esp8266 library that I wrote some years ago since that also uses AT commands although I think I should update that library since it uses a dedicated USART but in my newer libraries I made that more flexible. So I think I will manage, I only need to wait for the devices to arrive. In the meantime I could test it manually using a terminal program and type the response of the HC-06 module but that is just for initial tests. I decided to make a library specific for the HC-06 and later for the HC-05 and not combine the two. I think I already know an application as sample program: A wireless COM port via Bluetooth. Handy if you do not have a spare comport on your computer anymore. Keep you posted. 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 17:17 Aan: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> Onderwerp: Re: [jallib] Library for HC-06 Module? Nice! HM11 can be programmed to be both master and slave, that was the reason I've worked with them. However those BLEs are quite difficult to be found in Europe, except for China. Let me know privately if I can be helpful somehow. I saw in libraries that your programming knowledge looks better that mine... On Sat, Feb 20, 2021 at 11:40 AM Rob CJ <[email protected]<mailto:[email protected]>> wrote: 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]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> namens vsurducan <[email protected]<mailto:[email protected]>> Verzonden: zaterdag 20 februari 2021 10:12 Aan: [email protected]<mailto:[email protected]> <[email protected]<mailto:[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]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/AM0PR07MB62412E3B0327D8E428CD6C72E6839%40AM0PR07MB6241.eurprd07.prod.outlook.com<https://groups.google.com/d/msgid/jallib/AM0PR07MB62412E3B0327D8E428CD6C72E6839%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%2Bj4qvAig1MBwjB-M1w6f8CJVeRSaZk-AnViy6%3DbATBGoKGsw%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CAM%2Bj4qvAig1MBwjB-M1w6f8CJVeRSaZk-AnViy6%3DbATBGoKGsw%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/AM0PR07MB624132055A44CF755954957AE6839%40AM0PR07MB6241.eurprd07.prod.outlook.com<https://groups.google.com/d/msgid/jallib/AM0PR07MB624132055A44CF755954957AE6839%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/CALqKeO4%3DT_7u6qOfxPjK%2Bok6VhWy0mc3xakA-M-EHKR58C-mEQ%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CALqKeO4%3DT_7u6qOfxPjK%2Bok6VhWy0mc3xakA-M-EHKR58C-mEQ%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/AM0PR07MB624186065C3CA80870841BDEE6809%40AM0PR07MB6241.eurprd07.prod.outlook.com.
