Go Down

Topic: Renaming Bluetooth device (not ArduinoBT) (Read 2962 times) previous topic - next topic

masm

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?

sirbow2

what modules are you trying to rename? computer, phone , Arduino bluetooth modules? model #?
http://dduino.blogspot.com all my Arduino/electronic projects!!!

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

masm

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

sirbow2

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
http://dduino.blogspot.com all my Arduino/electronic projects!!!

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

masm

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.

sirbow2

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
http://dduino.blogspot.com all my Arduino/electronic projects!!!

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

masm

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 :D). 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?

sirbow2

thats seems correct, dunno why it wouldnt work. try resetting the power conenction.
http://dduino.blogspot.com all my Arduino/electronic projects!!!

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

masm

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 ;)

sirbow2

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?
http://dduino.blogspot.com all my Arduino/electronic projects!!!

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

arjiii24

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

sirbow2

#11
Mar 11, 2013, 07:38 pm Last Edit: Mar 11, 2013, 07:40 pm by sirbow2 Reason: 1
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.
http://dduino.blogspot.com all my Arduino/electronic projects!!!

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

Go Up