{"id":4291,"date":"2019-08-28T16:01:30","date_gmt":"2019-08-28T15:01:30","guid":{"rendered":"https:\/\/telefab.fr\/?p=4291"},"modified":"2026-04-30T16:39:10","modified_gmt":"2026-04-30T14:39:10","slug":"renommage-des-modules-bluetooth-hc05-mode-at","status":"publish","type":"tutoriel","link":"https:\/\/hub.imt-atlantique.fr\/fablab\/tutoriel\/renommage-des-modules-bluetooth-hc05-mode-at\/","title":{"rendered":"Renommage des modules bluetooth HC05 (Mode AT)"},"content":{"rendered":"<p>Le l&rsquo;objet de cette documentation est le renommage des modules bluetooth en mode commande AT depuis un poste linux. La m\u00e9thodes utilis\u00e9e est la suivante :<\/p>\n<ul>\n<li>Avoir cutecom install\u00e9 (<em>sudo apt-get install cutecom<\/em> sous ubuntu ou debian)<\/li>\n<li>Connecter un module bluetooth un arduino UNO :<\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<th>pin arduino<\/th>\n<th>pin HC05<\/th>\n<\/tr>\n<tr>\n<td>0 (RX)<\/td>\n<td>RXD<\/td>\n<\/tr>\n<tr>\n<td>1 (TX)<\/td>\n<td>TXD<\/td>\n<\/tr>\n<tr>\n<td>GND<\/td>\n<td>GND<\/td>\n<\/tr>\n<tr>\n<td>5V<\/td>\n<td>VCC<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>La LED du module bluetooth doit normalement clignoter rapidement<\/li>\n<li>Programmer un arduino avec un programme quelconque n&rsquo;utilisant pas le port s\u00e9rie (l&rsquo;exemple \u00ab\u00a0blink\u00a0\u00bb est parfait)<\/li>\n<li>D\u00e9brancher le fil 5V &lt;-&gt; VCC<\/li>\n<li>Appuyer et maintenir le poussoir sur le module bluetooth [Pour les modules n&rsquo;ayant pas de bouton poussoir voir dessous]<\/li>\n<li>Rebrancher le fil 5V &lt;-&gt; VCC<\/li>\n<li>Rel\u00e2cher le bouton poussoir du module bluetooth<\/li>\n<li>La LED du module doit clignoter lentement (toggle toutes les 2s)<\/li>\n<li>Ouvrir cutecom<\/li>\n<li>Ouvrir un terminal et entrer la commande ls \/dev<\/li>\n<li>Dans la liste des r\u00e9sultats de la commande chercher un \u00e9l\u00e9ments ressemblant \u00e0 ttyACM0<\/li>\n<li>Dans cutecom mettre les param\u00e8tres suivants (en adaptant pour le Device) :<\/li>\n<\/ul>\n<p><a href=\"https:\/\/hub.imt-atlantique.fr\/fablab\/wp-content\/uploads\/archives\/2017\/03\/cutecomconfig.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3282 aligncenter\" src=\"https:\/\/hub.imt-atlantique.fr\/fablab\/wp-content\/uploads\/archives\/2017\/03\/cutecomconfig-300x269.png\" alt=\"\" width=\"361\" height=\"324\" \/><\/a><\/p>\n<ul>\n<li>Cliquer sur Open device<\/li>\n<li>Entrer la commande \u00ab<strong>AT<\/strong>\u00bb dans le champ \u00ab\u00a0Input: \u00ab\u00a0, le message \u00ab\u00a0OK\u00a0\u00bb devrait s&rsquo;afficher dans le champ du haut.<\/li>\n<li>Entrer la commande \u00ab<strong>AT+NAME=\u00a0\u00bblenomvoulu\u00a0\u00bb<\/strong>\u00bb<\/li>\n<\/ul>\n<p><a href=\"https:\/\/hub.imt-atlantique.fr\/fablab\/wp-content\/uploads\/archives\/2017\/03\/cutecomrename.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3283 aligncenter\" src=\"https:\/\/hub.imt-atlantique.fr\/fablab\/wp-content\/uploads\/archives\/2017\/03\/cutecomrename-300x268.png\" alt=\"\" width=\"361\" height=\"323\" \/><\/a><\/p>\n<ul>\n<li>Il est possible de v\u00e9rifier le changement de nom en d\u00e9branchant et rebranchant le fil 5V &lt;-&gt; VCC puis en recherchant le module bluetooth sur son smartphone\/tablette\/PC<\/li>\n<\/ul>\n<h4>Pour les modules n&rsquo;ayant pas de bouton poussoir:<\/h4>\n<ul>\n<li>Brancher le pin \u00ab\u00a0KEY\u00a0\u00bb a une broche de l&rsquo;arduino et programmer la sortie en \u00ab\u00a0HIGH\u00a0\u00bb<\/li>\n<li>D\u00e9brancher le VCC et rebrancher le : Normalement le clignotement de la LED change (lent)<\/li>\n<li>D\u00e9brancher le pin \u00ab\u00a0KEY\u00a0\u00bb<\/li>\n<li>Normalement il est possible de communiquer avec le module bluetooth<\/li>\n<\/ul>\n<p>De nombreux articles indiquent cette m\u00e9thode sur instructables (mais ne parlent pas de d\u00e9brancher le KEY) : <a href=\"https:\/\/www.instructables.com\/id\/AT-command-mode-of-HC-05-Bluetooth-module\/\">https:\/\/www.instructables.com\/id\/How-to-Set-AT-Command-Mode-for-HC-05-Bluetooth-Mod\/<\/a><\/p>\n<p>Pour information, les commandes de base:<\/p>\n<p>AT : si tout va bien, le module r\u00e9pond OK<br \/>\nAT+NAME? : le nom du module + OK<br \/>\nAT+VERSION? :\u00a0Sa version\u00a0+ OK<br \/>\nAT+UART? :\u00a0sa vitesse, et OK (par exemple <span class=\"lang:php decode:true crayon-inline \">+UART:38400,0,0<\/span>\u00a0 ) <strong>&#8212; <\/strong>Les modules du Fablab sont r\u00e9gl\u00e9s \u00e0 9600 baud (d\u00e9faut 38400)<br \/>\nAT+ROLE?: Son r\u00f4le (1=master \/0=slave)<br \/>\nAT+PSWD?:\u00a0le mot de passe (en g\u00e9n\u00e9ral <span class=\"lang:php decode:true crayon-inline \">+PSWD:1234<\/span>\u00a0\u00a0) lorsque le mot de passe par d\u00e9faut (1234) a \u00e9t\u00e9 conserv\u00e9.<\/p>\n<p>Il est \u00e9galement possible de jumeler des modules ensemble ou automatiquement, par exemple le tuto suivant:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"ftC3Ff1SdB\"><p><a href=\"http:\/\/thewoodpecker.net\/codes-a-copiercoller-pour-jumeller-un-hc-05-module-blueetoot-maitre-a-un-hc-06-module-bluetooth-esclave\/\">Codes \u00e0 copier\/coller pour jumeller un HC-05 module Blueetoot ma\u00eetre \u00e0 un HC-06 module Bluetooth esclave<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Codes \u00e0 copier\/coller pour jumeller un HC-05 module Blueetoot ma\u00eetre \u00e0 un HC-06 module Bluetooth esclave&#8221; &#8212; The Woodpecker\" src=\"http:\/\/thewoodpecker.net\/codes-a-copiercoller-pour-jumeller-un-hc-05-module-blueetoot-maitre-a-un-hc-06-module-bluetooth-esclave\/embed\/#?secret=ftC3Ff1SdB\" data-secret=\"ftC3Ff1SdB\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p><strong>Attention, si pour un projet vous devez modifier les r\u00e9glages des modules du T\u00e9l\u00e9fab, vous devez les remettre \u00e0 l&rsquo;\u00e9tat initial (nom \u00e9tiquette + PSWD 1234 + UART:9600,0,0) quand vous les rendez!<\/strong><\/p>\n","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":false},"class_list":["post-4291","tutoriel","type-tutoriel","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/hub.imt-atlantique.fr\/fablab\/wp-json\/wp\/v2\/tutoriel\/4291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hub.imt-atlantique.fr\/fablab\/wp-json\/wp\/v2\/tutoriel"}],"about":[{"href":"https:\/\/hub.imt-atlantique.fr\/fablab\/wp-json\/wp\/v2\/types\/tutoriel"}],"wp:attachment":[{"href":"https:\/\/hub.imt-atlantique.fr\/fablab\/wp-json\/wp\/v2\/media?parent=4291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}