Pages: [1]   Go Down
Author Topic: Renaming Bluetooth device (not ArduinoBT)  (Read 2718 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I’m using Arduino’s as pressure transmitters. 
I have several of them and I read them with different computers and mobiles thru Bluetooth.
I have changed the Bluetooth names on computers and on phones.
But I have been naming them not always with the same name in different computers as I don’t remember how I named them in others computers or mobiles.
So sometimes there is a confusion which transmitter is sending the data.
I know I could mark the transmitters (which I will do now).
But in future when I will have more of them I would like to rename the Bluetooth devices.

I have seen two examples here in the forums but I was not able to change the name.
How can this be done?
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 486
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

what modules are you trying to rename? computer, phone , Arduino bluetooth modules? model #?
Logged

http://dduino.blogspot.com all my Arduino/electronic projects!!!

{NEW} Getting Started, Learning, Reference + FAQ PDF!!:
[url]http://ar

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have three EGBT-0462 and one EGBT-45MS bluetooth modules.
I would like to change the name linvor for something else.
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 486
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

look at the command set here: http://www.e-gizmo.com/KIT/images/EGBT-04/EGBT-045MS-046S%20Bluetooth%20Module%20Manual%20rev%201r0.pdf page 5

example:

Example1: Set device name as EGBT-04
COMMAND             RESPONSE
AT+NAME<name>   OK<name>
send from Host controller:
 AT+NAMEEGBT-04
EGBT-046S Response
 OKEGBT-0
Logged

http://dduino.blogspot.com all my Arduino/electronic projects!!!

{NEW} Getting Started, Learning, Reference + FAQ PDF!!:
[url]http://ar

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, I have seen this and tried them.
But I don't know in which order I need to to them.
I understand that not thru the Bluetooth connection.
But how to give these commandments to the module?
Can I do write the commands thru the Arduino 1.0 Serial Monitor?
Do I need to connect some Pin in the Bluetooth module?
Or do I need to  have some other equipment to do it.

Sorry, but I have never used the AT commands

Thanks for the help.
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 486
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

if you have your arduino connected with your computer, you can use the arduino serial monitor. just paste in: AT+NAMEbluA
and that will change the name to bluA

or just have the bluetooth module connected to the arduino with TX/RX, and write a program that does: Serial.print("AT+NAMEbluA"); and there ya go
Logged

http://dduino.blogspot.com all my Arduino/electronic projects!!!

{NEW} Getting Started, Learning, Reference + FAQ PDF!!:
[url]http://ar

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you sirbow2!

Maybe I was able to change it before, but I did not realize as I nicknamed on the computer the modules, it gave still the nick name (as it should smiley-grin). But when I checked with a new device I realized I had changed the name.
But it really helped me to go on as now I was sure what I was doing was the correct way.

After changing the name I was not able to change the PIN code with the
Serial.print("AT+PIN1111"); command?
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 486
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thats seems correct, dunno why it wouldnt work. try resetting the power conenction.
Logged

http://dduino.blogspot.com all my Arduino/electronic projects!!!

{NEW} Getting Started, Learning, Reference + FAQ PDF!!:
[url]http://ar

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, now it is giving the new PIN

I had only one delay after NAME but not after PIN.

After having delay1000 after the PIN, it changed the code.

Probably as it was a loop it had not enough time to set it.

Thanks once again....no I hope I have less confusion smiley-wink
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 486
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

one you set the name you don't need to continually send that command... i figured you were only sending one command. hopefully you were sending these commands in setup, rather than loop?
Logged

http://dduino.blogspot.com all my Arduino/electronic projects!!!

{NEW} Getting Started, Learning, Reference + FAQ PDF!!:
[url]http://ar

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

can you please show me your wirings? did you do the same on that manual? if so, what schottky diode did you use?
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 486
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i used another method for level converting 5v to 3.3v seen here: http://2.bp.blogspot.com/-eKW0mVBNZ0k/T1AsgYHyjMI/AAAAAAAABAk/pMAUyS1u0CU/s400/RN42+Scheme.PNG iwth my RN42 module. But, i still recommend that you wire yours according to the documentation of your module seen in the last diagram on page 3 here: http://www.e-gizmo.com/KIT/images/EGBT-04/EGBT-045MS-046S%20Bluetooth%20Module%20Manual%20rev%201r0.pdf

for that scheme i'd use a regular glass schottky diode. you could use one of the common black ones if you cant find one.
« Last Edit: March 11, 2013, 01:40:25 pm by sirbow2 » Logged

http://dduino.blogspot.com all my Arduino/electronic projects!!!

{NEW} Getting Started, Learning, Reference + FAQ PDF!!:
[url]http://ar

Pages: [1]   Go Up
Jump to: