Programming HC05 for BLUEDUO


David Kennett
 

Help!  I'm following instructions in video at Ham Radio Science.  Everything makes sense except when I type AT command, I get error messages: "No such file or directory", or "Resource temporarily unavailable", or "Write returned 0 errno: 11".


I'm using Cutecom, as recommended, but I don't really know what I'm doing - just trying to follow instructions.  Any help would be appreciated.


Dave   W8KFJ




Giovanni Franza
 

Hi Dave,
it seems that the serial is already kebt busy by the system
could you please verify the part "raspi config" to see if the serial is not already involved in "login shell" ?
Regards

Giovanni HB9EIK

p.s.: "login shell" is usually enabled to let you command the raspberry PI from a serial terminal connecteed to the serial. This, of course, locks the serial, and, when you use Cotecom you obtain error 11.


paul20@...
 

I have the same problem, serial is disabled ok. in the wiring diagram, there is a cable called temporary keyline, should it be connected, its not really clear, in the video looks like a cable is connected to pin 11 gpio17 and none on pin 17 3.3v connected to en (key).
Anyhow, not having any success.
cheers
Paul
gi4fzd


David Kennett
 

Thanks Giovanni for your response.  I went through the process again, and I think I'm doing everything right.  I'm new to the Pi, and I'm probably doing something wrong.

I notice that the programming diagram shows the HC05 KEY line connected to Pi pin 17,  A shot in the video shows it connected to pin 11.  Pin 17 would seem to be correct to provide a HI to the Key line.

Got any other ideas?  Thanks again.

Dave   W8KFJ


Krishna Kumar
 

Hello Dave,

I did the HC05 programming with a CP2102 USB to TTL converter dongle.

Let me know if you need details.

73

Krishna
VU3KAZ
--------------------------------------------

On Thu, 6/16/16, w8kfj@... [elad_sdr_en] <elad_sdr_en@...> wrote:

Subject: [elad_sdr_en] Re: Programming HC05 for BLUEDUO
To: elad_sdr_en@...
Date: Thursday, June 16, 2016, 2:28 PM


 









Thanks Giovanni for your response.  I went through
the process again, and I think I'm doing everything
right.  I'm new to the Pi, and I'm probably doing
something wrong.
I
notice that the programming diagram shows the HC05 KEY line
connected to Pi pin 17,  A shot in the video shows it
connected to pin 11.  Pin 17 would seem to be correct to
provide a HI to the Key line.
Got any other ideas?  Thanks
again.
Dave  
W8KFJ









#yiv6816492626 #yiv6816492626 --
#yiv6816492626ygrp-mkp {
border:1px solid #d8d8d8;font-family:Arial;margin:10px
0;padding:0 10px;}

#yiv6816492626 #yiv6816492626ygrp-mkp hr {
border:1px solid #d8d8d8;}

#yiv6816492626 #yiv6816492626ygrp-mkp #yiv6816492626hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px
0;}

#yiv6816492626 #yiv6816492626ygrp-mkp #yiv6816492626ads {
margin-bottom:10px;}

#yiv6816492626 #yiv6816492626ygrp-mkp .yiv6816492626ad {
padding:0 0;}

#yiv6816492626 #yiv6816492626ygrp-mkp .yiv6816492626ad p {
margin:0;}

#yiv6816492626 #yiv6816492626ygrp-mkp .yiv6816492626ad a {
color:#0000ff;text-decoration:none;}
#yiv6816492626 #yiv6816492626ygrp-sponsor
#yiv6816492626ygrp-lc {
font-family:Arial;}

#yiv6816492626 #yiv6816492626ygrp-sponsor
#yiv6816492626ygrp-lc #yiv6816492626hd {
margin:10px
0px;font-weight:700;font-size:78%;line-height:122%;}

#yiv6816492626 #yiv6816492626ygrp-sponsor
#yiv6816492626ygrp-lc .yiv6816492626ad {
margin-bottom:10px;padding:0 0;}

#yiv6816492626 #yiv6816492626actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#yiv6816492626 #yiv6816492626activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#yiv6816492626 #yiv6816492626activity span {
font-weight:700;}

#yiv6816492626 #yiv6816492626activity span:first-child {
text-transform:uppercase;}

#yiv6816492626 #yiv6816492626activity span a {
color:#5085b6;text-decoration:none;}

#yiv6816492626 #yiv6816492626activity span span {
color:#ff7900;}

#yiv6816492626 #yiv6816492626activity span
.yiv6816492626underline {
text-decoration:underline;}

#yiv6816492626 .yiv6816492626attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px
0;width:400px;}

#yiv6816492626 .yiv6816492626attach div a {
text-decoration:none;}

#yiv6816492626 .yiv6816492626attach img {
border:none;padding-right:5px;}

#yiv6816492626 .yiv6816492626attach label {
display:block;margin-bottom:5px;}

#yiv6816492626 .yiv6816492626attach label a {
text-decoration:none;}

#yiv6816492626 blockquote {
margin:0 0 0 4px;}

#yiv6816492626 .yiv6816492626bold {
font-family:Arial;font-size:13px;font-weight:700;}

#yiv6816492626 .yiv6816492626bold a {
text-decoration:none;}

#yiv6816492626 dd.yiv6816492626last p a {
font-family:Verdana;font-weight:700;}

#yiv6816492626 dd.yiv6816492626last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#yiv6816492626 dd.yiv6816492626last p
span.yiv6816492626yshortcuts {
margin-right:0;}

#yiv6816492626 div.yiv6816492626attach-table div div a {
text-decoration:none;}

#yiv6816492626 div.yiv6816492626attach-table {
width:400px;}

#yiv6816492626 div.yiv6816492626file-title a, #yiv6816492626
div.yiv6816492626file-title a:active, #yiv6816492626
div.yiv6816492626file-title a:hover, #yiv6816492626
div.yiv6816492626file-title a:visited {
text-decoration:none;}

#yiv6816492626 div.yiv6816492626photo-title a,
#yiv6816492626 div.yiv6816492626photo-title a:active,
#yiv6816492626 div.yiv6816492626photo-title a:hover,
#yiv6816492626 div.yiv6816492626photo-title a:visited {
text-decoration:none;}

#yiv6816492626 div#yiv6816492626ygrp-mlmsg
#yiv6816492626ygrp-msg p a span.yiv6816492626yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#yiv6816492626 .yiv6816492626green {
color:#628c2a;}

#yiv6816492626 .yiv6816492626MsoNormal {
margin:0 0 0 0;}

#yiv6816492626 o {
font-size:0;}

#yiv6816492626 #yiv6816492626photos div {
float:left;width:72px;}

#yiv6816492626 #yiv6816492626photos div div {
border:1px solid
#666666;height:62px;overflow:hidden;width:62px;}

#yiv6816492626 #yiv6816492626photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#yiv6816492626 #yiv6816492626reco-category {
font-size:77%;}

#yiv6816492626 #yiv6816492626reco-desc {
font-size:77%;}

#yiv6816492626 .yiv6816492626replbq {
margin:4px;}

#yiv6816492626 #yiv6816492626ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#yiv6816492626 #yiv6816492626ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean,
sans-serif;}

#yiv6816492626 #yiv6816492626ygrp-mlmsg table {
font-size:inherit;font:100%;}

#yiv6816492626 #yiv6816492626ygrp-mlmsg select,
#yiv6816492626 input, #yiv6816492626 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#yiv6816492626 #yiv6816492626ygrp-mlmsg pre, #yiv6816492626
code {
font:115% monospace;}

#yiv6816492626 #yiv6816492626ygrp-mlmsg * {
line-height:1.22em;}

#yiv6816492626 #yiv6816492626ygrp-mlmsg #yiv6816492626logo {
padding-bottom:10px;}


#yiv6816492626 #yiv6816492626ygrp-msg p a {
font-family:Verdana;}

#yiv6816492626 #yiv6816492626ygrp-msg
p#yiv6816492626attach-count span {
color:#1E66AE;font-weight:700;}

#yiv6816492626 #yiv6816492626ygrp-reco
#yiv6816492626reco-head {
color:#ff7900;font-weight:700;}

#yiv6816492626 #yiv6816492626ygrp-reco {
margin-bottom:20px;padding:0px;}

#yiv6816492626 #yiv6816492626ygrp-sponsor #yiv6816492626ov
li a {
font-size:130%;text-decoration:none;}

#yiv6816492626 #yiv6816492626ygrp-sponsor #yiv6816492626ov
li {
font-size:77%;list-style-type:square;padding:6px 0;}

#yiv6816492626 #yiv6816492626ygrp-sponsor #yiv6816492626ov
ul {
margin:0;padding:0 0 0 8px;}

#yiv6816492626 #yiv6816492626ygrp-text {
font-family:Georgia;}

#yiv6816492626 #yiv6816492626ygrp-text p {
margin:0 0 1em 0;}

#yiv6816492626 #yiv6816492626ygrp-text tt {
font-size:120%;}

#yiv6816492626 #yiv6816492626ygrp-vital ul li:last-child {
border-right:none !important;
}
#yiv6816492626


paul20@...
 

Hi Krishna,
I would be interested in the details, can you post them here?
If not, please email them to me.My address is ok on qrz
Paul
gi4fzd


Giovanni Franza
 

Hi Dave,
I think you could have two different problems, the first being the errno 11, the second the uncertainly of pint for KEY line. Those problems are not connected.
For the first issue I'm pretty sure that the serial line is locked by a login shell, to verify this, please take a look to /etc/inittab. If this file has a line like:
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
(the important thing are the presence of the words 'getty' and 'tty' (could be ttyAMA0 or tty followed by other letters)
you have only to prepend only an hash (#) character to disable, transforming the line as
#
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
and then do che command
kill -1 1
or reboot the raspberry.
I hope this help you solve the problem.

For the second issue I think you are right: pin 17 provides a 3Vcc level that is ok for Key line (I think that it could be a mess between "pin 17" and "GPIO17" that is on pin 11).

Regards

Giovanni HB9EIK


---In elad_sdr_en@..., <w8kfj@...> wrote :

Thanks Giovanni for your response.  I went through the process again, and I think I'm doing everything right.  I'm new to the Pi, and I'm probably doing something wrong.

I notice that the programming diagram shows the HC05 KEY line connected to Pi pin 17,  A shot in the video shows it connected to pin 11.  Pin 17 would seem to be correct to provide a HI to the Key line.

Got any other ideas?  Thanks again.

Dave   W8KFJ


Krishna Kumar
 

Hello Paul,

Please find attached the instruction document with screenshots ( the document is in Open Office Text format), if unable to open it, let me know,I can send a simple txt file without the screenshots.

Let me take a moment to thank Giovanni for his precious time and efforts to gift this wonderful software to the members of FDM-DUO family.

73

Krishna
VU3KAZ
--------------------------------------------

On Fri, 6/17/16, paul20@... [elad_sdr_en] <elad_sdr_en@...> wrote:

Subject: Re: [elad_sdr_en] Re: Programming HC05 for BLUEDUO
To: elad_sdr_en@...
Date: Friday, June 17, 2016, 12:43 AM


 









Hi Krishna,
I would be interested
in the details, can you post them here?
If
not, please email them to me.My address is ok on qrz
Paul
gi4fzd









#yiv9510928073 #yiv9510928073 --
#yiv9510928073ygrp-mkp {
border:1px solid #d8d8d8;font-family:Arial;margin:10px
0;padding:0 10px;}

#yiv9510928073 #yiv9510928073ygrp-mkp hr {
border:1px solid #d8d8d8;}

#yiv9510928073 #yiv9510928073ygrp-mkp #yiv9510928073hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px
0;}

#yiv9510928073 #yiv9510928073ygrp-mkp #yiv9510928073ads {
margin-bottom:10px;}

#yiv9510928073 #yiv9510928073ygrp-mkp .yiv9510928073ad {
padding:0 0;}

#yiv9510928073 #yiv9510928073ygrp-mkp .yiv9510928073ad p {
margin:0;}

#yiv9510928073 #yiv9510928073ygrp-mkp .yiv9510928073ad a {
color:#0000ff;text-decoration:none;}
#yiv9510928073 #yiv9510928073ygrp-sponsor
#yiv9510928073ygrp-lc {
font-family:Arial;}

#yiv9510928073 #yiv9510928073ygrp-sponsor
#yiv9510928073ygrp-lc #yiv9510928073hd {
margin:10px
0px;font-weight:700;font-size:78%;line-height:122%;}

#yiv9510928073 #yiv9510928073ygrp-sponsor
#yiv9510928073ygrp-lc .yiv9510928073ad {
margin-bottom:10px;padding:0 0;}

#yiv9510928073 #yiv9510928073actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#yiv9510928073 #yiv9510928073activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#yiv9510928073 #yiv9510928073activity span {
font-weight:700;}

#yiv9510928073 #yiv9510928073activity span:first-child {
text-transform:uppercase;}

#yiv9510928073 #yiv9510928073activity span a {
color:#5085b6;text-decoration:none;}

#yiv9510928073 #yiv9510928073activity span span {
color:#ff7900;}

#yiv9510928073 #yiv9510928073activity span
.yiv9510928073underline {
text-decoration:underline;}

#yiv9510928073 .yiv9510928073attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px
0;width:400px;}

#yiv9510928073 .yiv9510928073attach div a {
text-decoration:none;}

#yiv9510928073 .yiv9510928073attach img {
border:none;padding-right:5px;}

#yiv9510928073 .yiv9510928073attach label {
display:block;margin-bottom:5px;}

#yiv9510928073 .yiv9510928073attach label a {
text-decoration:none;}

#yiv9510928073 blockquote {
margin:0 0 0 4px;}

#yiv9510928073 .yiv9510928073bold {
font-family:Arial;font-size:13px;font-weight:700;}

#yiv9510928073 .yiv9510928073bold a {
text-decoration:none;}

#yiv9510928073 dd.yiv9510928073last p a {
font-family:Verdana;font-weight:700;}

#yiv9510928073 dd.yiv9510928073last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#yiv9510928073 dd.yiv9510928073last p
span.yiv9510928073yshortcuts {
margin-right:0;}

#yiv9510928073 div.yiv9510928073attach-table div div a {
text-decoration:none;}

#yiv9510928073 div.yiv9510928073attach-table {
width:400px;}

#yiv9510928073 div.yiv9510928073file-title a, #yiv9510928073
div.yiv9510928073file-title a:active, #yiv9510928073
div.yiv9510928073file-title a:hover, #yiv9510928073
div.yiv9510928073file-title a:visited {
text-decoration:none;}

#yiv9510928073 div.yiv9510928073photo-title a,
#yiv9510928073 div.yiv9510928073photo-title a:active,
#yiv9510928073 div.yiv9510928073photo-title a:hover,
#yiv9510928073 div.yiv9510928073photo-title a:visited {
text-decoration:none;}

#yiv9510928073 div#yiv9510928073ygrp-mlmsg
#yiv9510928073ygrp-msg p a span.yiv9510928073yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#yiv9510928073 .yiv9510928073green {
color:#628c2a;}

#yiv9510928073 .yiv9510928073MsoNormal {
margin:0 0 0 0;}

#yiv9510928073 o {
font-size:0;}

#yiv9510928073 #yiv9510928073photos div {
float:left;width:72px;}

#yiv9510928073 #yiv9510928073photos div div {
border:1px solid
#666666;height:62px;overflow:hidden;width:62px;}

#yiv9510928073 #yiv9510928073photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#yiv9510928073 #yiv9510928073reco-category {
font-size:77%;}

#yiv9510928073 #yiv9510928073reco-desc {
font-size:77%;}

#yiv9510928073 .yiv9510928073replbq {
margin:4px;}

#yiv9510928073 #yiv9510928073ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#yiv9510928073 #yiv9510928073ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean,
sans-serif;}

#yiv9510928073 #yiv9510928073ygrp-mlmsg table {
font-size:inherit;font:100%;}

#yiv9510928073 #yiv9510928073ygrp-mlmsg select,
#yiv9510928073 input, #yiv9510928073 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#yiv9510928073 #yiv9510928073ygrp-mlmsg pre, #yiv9510928073
code {
font:115% monospace;}

#yiv9510928073 #yiv9510928073ygrp-mlmsg * {
line-height:1.22em;}

#yiv9510928073 #yiv9510928073ygrp-mlmsg #yiv9510928073logo {
padding-bottom:10px;}


#yiv9510928073 #yiv9510928073ygrp-msg p a {
font-family:Verdana;}

#yiv9510928073 #yiv9510928073ygrp-msg
p#yiv9510928073attach-count span {
color:#1E66AE;font-weight:700;}

#yiv9510928073 #yiv9510928073ygrp-reco
#yiv9510928073reco-head {
color:#ff7900;font-weight:700;}

#yiv9510928073 #yiv9510928073ygrp-reco {
margin-bottom:20px;padding:0px;}

#yiv9510928073 #yiv9510928073ygrp-sponsor #yiv9510928073ov
li a {
font-size:130%;text-decoration:none;}

#yiv9510928073 #yiv9510928073ygrp-sponsor #yiv9510928073ov
li {
font-size:77%;list-style-type:square;padding:6px 0;}

#yiv9510928073 #yiv9510928073ygrp-sponsor #yiv9510928073ov
ul {
margin:0;padding:0 0 0 8px;}

#yiv9510928073 #yiv9510928073ygrp-text {
font-family:Georgia;}

#yiv9510928073 #yiv9510928073ygrp-text p {
margin:0 0 1em 0;}

#yiv9510928073 #yiv9510928073ygrp-text tt {
font-size:120%;}

#yiv9510928073 #yiv9510928073ygrp-vital ul li:last-child {
border-right:none !important;
}
#yiv9510928073


paul20@...
 

Thanks Krishna,
I have ordered up the bridge and will give it a try when it arrives,
Thank you for the info.
Paul
GI4FZD


paul20@...
 

Giovanni,
 I have been using your program for a few days and want to thank you for your fine program.
I wonder would you be able to include a button for 60m which is quite a popular band here in the UK?
It works fine on my moto x mobile phone but it is locking up after about 5 minutes on my Hudl 2 android tablet.
Time for a better tablet I think. It is running Android ver 5.1 and can't be updated as Tesco no longer support it.
Cheers
Paul
gi4fzd


Giovanni Franza
 

Hi Paul,
since it is not so simple to add a button and the 60m band is not univerally available, I think that its inclusion will follow the version in which we can personalize the buttons, so people in countries that disallow this band to the om could not have a "dead" button on the interface.
This lead to August/September (if all goes well).
In any case your "desiderata" has been registered.
For the version: the application is compiled to comply with android versions from 2.3.3 gingerbread, and I've tested with a Samsung pad 6/7 years old, so I think the problem should be not in the version.
Regards


Giovanni HB9EIK


---In elad_sdr_en@..., <paul20@...> wrote :

Giovanni,
 I have been using your program for a few days and want to thank you for your fine program.
I wonder would you be able to include a button for 60m which is quite a popular band here in the UK?
It works fine on my moto x mobile phone but it is locking up after about 5 minutes on my Hudl 2 android tablet.
Time for a better tablet I think. It is running Android ver 5.1 and can't be updated as Tesco no longer support it.
Cheers
Paul
gi4fzd


David Kennett
 

Thanks to those who helped!  I finally gave up on the Pi, and used a Windows terminal pgm with a TTL interface.  Things working great now!  Oh, thanks for a great app Giovanni!

Dave  W8KFJ


paul20@...
 

I did the same using the advice from Krishna and it all worked fine.
Cheers
paul
GI4FZD


Udo Isaenko
 

Hi Giovanni

I seem to have the same problems as Dave, but I don't want to buy such an CP2102 dongle, I think it should be possible to do the programming of the HC-05 adapter with the Raspi.

I have looked for the /etc/inittab file, but it does not exeist on my system (a quite new Raspbian). I checked several times that the serial input in raspi-config is switched off.

Nevertheless, I always get errors (errno 2 "File or directory not found" or errno 11 "The resource is temporarily not available") when I try to send a command (e.g. "AT+VERSION?") to the HC-05.

The cables seem to be correctly connected. I tried with two different HC-05 (as I bought another one for a friend of mine) ans also with two different Raspis. My old one, a Raspi 1 B, does not open the HC-05 device, but the new Raspi 3 opens it without problems, the problems come only when I try to send a command.

What could I do now, as there is no /etc/inittab file on my system?

73
Udo, HB9ERD

La 17.06.2016 je 11:00 skribis gfranza@... [elad_sdr_en] (elad_sdr_en@...):



Hi Dave,
I think you could have two different problems, the first being the errno
11, the second the uncertainly of pint for KEY line. Those problems are
not connected.
For the first issue I'm pretty sure that the serial line is locked by a
login shell, to verify this, please take a look to /etc/inittab. If this
file has a line like:
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
(the important thing are the presence of the words 'getty' and 'tty'
(could be ttyAMA0 or tty followed by other letters)
you have only to prepend only an hash (#) character to disable,
transforming the line as
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
and then do che command
kill -1 1
or reboot the raspberry.
I hope this help you solve the problem.

For the second issue I think you are right: pin 17 provides a 3Vcc level
that is ok for Key line (I think that it could be a mess between "pin
17" and "GPIO17" that is on pin 11).

Regards

Giovanni HB9EIK



---In elad_sdr_en@..., <w8kfj@...> wrote :

Thanks Giovanni for your response. I went through the process again,
and I think I'm doing everything right. I'm new to the Pi, and I'm
probably doing something wrong.

I notice that the programming diagram shows the HC05 KEY line connected
to Pi pin 17, A shot in the video shows it connected to pin 11. Pin 17
would seem to be correct to provide a HI to the Key line.

Got any other ideas? Thanks again.

Dave W8KFJ


Giovanni Franza
 

Hi Udo,
the "problem" is the fact that sysvinit has been repaced by systemd, so /etc/inittab is no more on the system.
The problem youu experience is the fact that raspbian enable the serial as a "tty console".
To stop  this, under systemd you have to usesudo systemctl stop serial-getty@...
or, to disable you have ti use:
sudo systemctl disable serial-getty@...
then you can be able to send commands to your serial
hope this helps

Giovanni HB9EIK


---In elad_sdr_en@..., <dx@...> wrote :

Hi Giovanni

I seem to have the same problems as Dave, but I don't want to buy such
an CP2102 dongle, I think it should be possible to do the programming of
the HC-05 adapter with the Raspi.

I have looked for the /etc/inittab file, but it does not exeist on my
system (a quite new Raspbian). I checked several times that the serial
input in raspi-config is switched off.

Nevertheless, I always get errors (errno 2 "File or directory not found"
or errno 11 "The resource is temporarily not available") when I try to
send a command (e.g. "AT+VERSION?") to the HC-05.

The cables seem to be correctly connected. I tried with two different
HC-05 (as I bought another one for a friend of mine) ans also with two
different Raspis. My old one, a Raspi 1 B, does not open the HC-05
device, but the new Raspi 3 opens it without problems, the problems come
only when I try to send a command.

What could I do now, as there is no /etc/inittab file on my system?

73
Udo, HB9ERD

La 17.06.2016 je 11:00 skribis gfranza@... [elad_sdr_en]
(elad_sdr_en@...):

>
>
> Hi Dave,
> I think you could have two different problems, the first being the errno
> 11, the second the uncertainly of pint for KEY line. Those problems are
> not connected.
> For the first issue I'm pretty sure that the serial line is locked by a
> login shell, to verify this, please take a look to /etc/inittab. If this
> file has a line like:
> T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
> (the important thing are the presence of the words 'getty' and 'tty'
> (could be ttyAMA0 or tty followed by other letters)
> you have only to prepend only an hash (#) character to disable,
> transforming the line as
> #T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
> and then do che command
> kill -1 1
> or reboot the raspberry.
> I hope this help you solve the problem.
>
> For the second issue I think you are right: pin 17 provides a 3Vcc level
> that is ok for Key line (I think that it could be a mess between "pin
> 17" and "GPIO17" that is on pin 11).
>
> Regards
>
> Giovanni HB9EIK
>
>
>
> ---In elad_sdr_en@..., <w8kfj@...> wrote :
>
> Thanks Giovanni for your response. I went through the process again,
> and I think I'm doing everything right. I'm new to the Pi, and I'm
> probably doing something wrong.
>
> I notice that the programming diagram shows the HC05 KEY line connected
> to Pi pin 17, A shot in the video shows it connected to pin 11. Pin 17
> would seem to be correct to provide a HI to the Key line.
>
> Got any other ideas? Thanks again.
>
> Dave W8KFJ
>
>
 


Giovanni Franza
 

Hi Udo,
the problem is that newer verions of Linux do not anoymore use sysvinit but the new systemd.
So, to stop or to disable tty console you have to use different commands:
to stop (it could be enough) the command is:
sudo systemctl stop serial.getty@...
to start use start instead of stop
you can also disable (in no longer interested into this service using disable and re enable using enable.
hope this helps

Giovanni

---In elad_sdr_en@..., <dx@...> wrote :

Hi Giovanni

I seem to have the same problems as Dave, but I don't want to buy such
an CP2102 dongle, I think it should be possible to do the programming of
the HC-05 adapter with the Raspi.

I have looked for the /etc/inittab file, but it does not exeist on my
system (a quite new Raspbian). I checked several times that the serial
input in raspi-config is switched off.

Nevertheless, I always get errors (errno 2 "File or directory not found"
or errno 11 "The resource is temporarily not available") when I try to
send a command (e.g. "AT+VERSION?") to the HC-05.

The cables seem to be correctly connected. I tried with two different
HC-05 (as I bought another one for a friend of mine) ans also with two
different Raspis. My old one, a Raspi 1 B, does not open the HC-05
device, but the new Raspi 3 opens it without problems, the problems come
only when I try to send a command.

What could I do now, as there is no /etc/inittab file on my system?

73
Udo, HB9ERD

La 17.06.2016 je 11:00 skribis gfranza@... [elad_sdr_en]
(elad_sdr_en@...):

>
>
> Hi Dave,
> I think you could have two different problems, the first being the errno
> 11, the second the uncertainly of pint for KEY line. Those problems are
> not connected.
> For the first issue I'm pretty sure that the serial line is locked by a
> login shell, to verify this, please take a look to /etc/inittab. If this
> file has a line like:
> T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
> (the important thing are the presence of the words 'getty' and 'tty'
> (could be ttyAMA0 or tty followed by other letters)
> you have only to prepend only an hash (#) character to disable,
> transforming the line as
> #T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
> and then do che command
> kill -1 1
> or reboot the raspberry.
> I hope this help you solve the problem.
>
> For the second issue I think you are right: pin 17 provides a 3Vcc level
> that is ok for Key line (I think that it could be a mess between "pin
> 17" and "GPIO17" that is on pin 11).
>
> Regards
>
> Giovanni HB9EIK
>
>
>
> ---In elad_sdr_en@..., <w8kfj@...> wrote :
>
> Thanks Giovanni for your response. I went through the process again,
> and I think I'm doing everything right. I'm new to the Pi, and I'm
> probably doing something wrong.
>
> I notice that the programming diagram shows the HC05 KEY line connected
> to Pi pin 17, A shot in the video shows it connected to pin 11. Pin 17
> would seem to be correct to provide a HI to the Key line.
>
> Got any other ideas? Thanks again.
>
> Dave W8KFJ
>
>


Udo Isaenko
 

Hello

Together with Giovanni, we have now exchanged several personal emails and finally resolved my problems. I was successfully able to program the HC-05 interface with my Raspberry PI 3 (newest Raspbian version).
The steps were (the following text is mostly from Giovanni):

1) Raspberry PI 3 uses ttyAMA0 for Bluetooth, so you have to use
/dev/Serial0
2) The serial line must be enabled in /boot/config.txt using the line
enable_uart=1
3) due to the limitation of the UART used, that relies on CPU clock,
in /boot/config.txt the cpu speed has to be fixed using the line
core_freq=250
4) In the graphical configuration (Menu "Settings" - "Raspberry PI configuration") in the "Interfaces" tab (or in the terminal with sudo raspi-config), the "Serial" interface may be enabled (or not), this does apparently not harm.
5) To avoid the occupation of the serial line by a console you have to
verify in /boot/cmdline.txt that the parameter console has no
reference to things like serial o dev but only to tty1 or similar
6) In case of an already present errno 11, it could be of help to try
to stop login consoles on /dev/ttyS0 using the command
sudo systemctl stop serial.getty@...

So, I did not need to buy a TTL interface, all worked well with the Raspberry PI.

Maybe this helps to other OMs who want also make their own HC-05 with a new Raspberry PI 3.

After connecting the HC05 to a 9-pin-plug, downloading the app and updating the DUO firmware, now all works very well.

Many thanks to Giovanni for the huge help he provided.

73
Udo, HB9ERD


Paul
 

I have a RS232 to TTL level translator and will be programming via CuteCom on one of my linux boxes...

Do you have a list of command changes that we need to perform? I have nothing against Raspberry Pi's other than the fact that I don't own one...

Thanks
paul
WB9HCO


Fred Lodden <felodden@...>
 

I followed the instructions on Ham Radio Science for programming the bluetooth module using a Raspberry Pi. After two days of messing around and trying all possible combinations of pins (is it 11 or 17? - OK now resolved). button presses etc. mine just would not get into programming mode and so I was not even able to progress past step 1 so to speak. Extremely frustrating.
Then after trying to Google what the issues might be, I discovered that it is also possible to program the module with an Arduino using its Serial Monitor as the user interface.
Ok, I have Arduinos too so I set that up. Still had issues getting the module into program mode using the Arduino code (it sequences the power on applied to relevant pins). In the end I found that I could comment out the power on sequencing code in the sketch and I just had to hold down the on-board button on power up and it was in programming mode! After that it was trivial to preform the various commands to change the name, PIN number, baud rate etc.
Well the dongle works but I then got caught out by a mismatch between the Elad Duo code version and the BlueDuo code version. I posted to the group with some images and Giovanni came straight back with an answer.
So, all good now, but it was quite a journey.
Fred
VK2EFL


Giovanni Franza
 

I hope this post can help you
https://groups.io/g/EladSDR/message/12006?p=,,,20,0,0,0::Created,,HC05,20,2,0,5821789
it's a little bit pedantic, cites raspberry but also should have the informations you need.
Feel free to ask for every doubt.

Giovanni - HB9EIK