# BlueSmirf returns "No Services found" if connect/d

**URL:** <https://community.sparkfun.com/t/bluesmirf-returns-no-services-found-if-connect-d/3598>\
**Category:** Wireless & IoT\
**Created:** [January 29, 2007, 2:09pm UTC](https://community.sparkfun.com/t/bluesmirf-returns-no-services-found-if-connect-d/3598 "2007-01-29T14:09:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YvesB](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@YvesB](https://community.sparkfun.com/u/YvesB)\
**Post date:** [January 29, 2007, 2:09pm UTC](https://community.sparkfun.com/t/bluesmirf-returns-no-services-found-if-connect-d/3598/1 "2007-01-29T14:09:31Z")

</div>

I was hoping someone who has seen this before or the SparkFun guys can help me with this. Sorry about the long post but I’d rather provide all the details up front.

I have an issue with the BlueSmirf where if connecting to it then disconnecting almost immediately afterwards puts the Smirf in “limbo” state where it no longer provides the COM0 service.

When in this state, the Smirf has no services to list and you must either issue an ATURST command from the UART side or power off/on to reset out of this state. If you set it to allow multiple connections (let’s say 3), the first time you perform this connect/disconnect motion, the COM0 service will disappear the next time you attempt to connect. The time after that, COM1 disappears and you are left with COM2.

It’s like the connections are not being released because you disconnected too quickly but yet the ATSI,3 returns 0,0 which is slave, disconnected status. I was expecting it to be in Idle since it no longer lists a service to use when attempting to connect that second time.

I have tried different configuration of ATSW24,2,0,0,0 and ATSW25,0,1,1,0 which ignores incoming UART data until the unit is connected and data mode. Even issued the temporary fast mode command through ATMF but hesitant to set it permanently with ATSW25,0,0,0,0 since it cannot recover due to PIO4 being tied to GND on the carrier board (I read that setting PIO4 high for 2 seconds upon power up is required to reset to factory defaults).

Anyway, the firmware is Ver 3.5.2.1.3.0 and I have tried 3 other Smirfs I have here with the same repeatable results.

Do I need to perhaps modify the Slave scan intervals and window settings through ATSW21 to resolve this problem?

I have 12 more units coming in from SparkFun. They are useless to me if this issue cannot be addressed. Help!!!

---

<div class="post-metadata">

**Author:** ![diegoagonzalez](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@diegoagonzalez](https://community.sparkfun.com/u/diegoagonzalez)\
**Post date:** [July 18, 2007, 3:36am UTC](https://community.sparkfun.com/t/bluesmirf-returns-no-services-found-if-connect-d/3598/2 "2007-07-18T03:36:29Z")

</div>

what did you do to reset the bluesmirf?

I have one bluesmirf that it`s in automaster mode and if there is not slave present, always it replies "NO ANSWER" every 40 seconds, and there it`s not way to put this bluesmirf in command mode sending the +++ command by serial hyperteminal COM1, I need to reconfigure this Bluesmirf and make a ATFRST to let it with factory settings.

The inicial configuration for automaster was:

atsma,00A096179A83,1101

atsw25,1,1,0,0

I have a second Bluesmirf that it`s worst and right now it`s completly unuseful, I made this configuration:

> ATSW21,2560,11,2560,11

> ATSW25,0,1,1,0

> ATSW24,2,1,0,0

> ATSW20,10,1,0,1

ATSW21,2560,11,2560,11 //Change scan intervals thus decreasing the

power consumption from 48mA to 2mA before the module is connected

ATSW25,0,1,1,0 //Prevent communication before connected

i.e. after this command, you can reconfigure BlueSmiRF only when it

Is connected, and you get out of the data mode using the escape sequence. This is important, because the randomly

received and translated IR bytes will be ignored, and will not

accidentally reconfigure the module.

ATSW24,2,1,0,0 //Turn off verbal responses. This is

important, because otherwise the BlueSmiRF will be talking to the RCX

each time you open or

close the port (CONNECT, NO CARRIER strings). After this command, the

BlueSmiRF will output only

data.

I had posted the message of topic \<Bluesmirf, Auto-Master problem with BlueRadio\>

[viewtopic.php?t=7352&highlight=](http://forum.sparkfun.com/viewtopic.php?t=7352&highlight=)

HELP, PLEASE !!!

DIEGO GONZALEZ

---

<div class="post-metadata">

**Author:** ![diegoagonzalez](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@diegoagonzalez](https://community.sparkfun.com/u/diegoagonzalez)\
**Post date:** [July 18, 2007, 3:37am UTC](https://community.sparkfun.com/t/bluesmirf-returns-no-services-found-if-connect-d/3598/3 "2007-07-18T03:37:44Z")

</div>

EMAILS SENT TO SUPPORT OF SPARKFUN:

diego gonzalez wrote:

> 

> Hi Level1,

> The Bluesmirf that connected doesn`t show any lights, I used the

> following comands to change the configuration, I don´t remember the

> order of those commands:

> 

> ATSW21,2560,11,2560,11

> ATSW25,0,1,1,0

> ATSW24,2,1,0,0

> ATSW20,10,1,0,1

> 

> 

> To the Bluesmirf configured as Master I used the following comands in

> order:

> ATFRST

> ATSMA,00A09611FBBC,1101

> ATSW25,1,1,0,0

> //00A09611FBBC is the Slave direction.

> 

> 

> Thank you for your help.

> 

> Diego Gonzalez

> 

> * * *

> 

> > Date: Mon, 9 Jul 2007 13:34:25 -0600

> > From: [level1@sparkfun.com](mailto:level1@sparkfun.com)

> > To: [diegoagonzalez@hotmail.com](mailto:diegoagonzalez@hotmail.com)

> > Subject: Re: PLEASE SOME HELP ABOUT BLUESMIRF !!!

> >

> > Hi Diego,

> > Could you send me the exact set of commands you sent to the bluesmirf?

> >

> > diego gonzalez wrote:

> > > Hi Level1 of Sparkfun, I followed your instructions about the

> > > Bluesmirf configured as Master: "first just power up the module with

> > > no shorts in it, then open up hyperterminal at the 9600 baud rate

> with

> > > no flow control. Then type +++ and 1 “enter” character and let me

> know

> > > what happens."

> > >

> > > I did the test sending the commands from PC-COM1 ↔ MAX232 ↔ RX

> > > and TX BluesmiRF Master. there is no answer and if I send other

> > > command like AT, there is not answer too.

> > >

> > > When I did the test sending the commands from PC-COM1 ↔ MAX232

> ↔

> > > RX and TX BluesmiRF Slave. there is no answer and if I send other

> > > command like AT or ATSI,2 , I get answers like OK or the name of my

> > > Bluesmirf.

> > >

> > >

> > > There is another thing that I didn`t mencion before, Using My

> > > Bluedongle and Bluesoleil , when I search for the Bluesmirf

> > > configured as Master this is detected for one second when I turn

> it on

> > > but when I try get service I get the answer "SERVICE DISCOVERY

> > > FAILED" so I refresh the searching and the Blusmirf is not detected

> > > again, It´s only detected when It´s turned on while the Bluesoleil

> > > program is searching for devices.

> > >

> > >

> > > About the other issue, the Bluesmirf that connected doesn`t show any

> > > lights, I used comands to change the configuration before to get that

> > > state, the command were:

> > >

> > > ATSW21,2560,11,2560,11 //Change scan intervals thus decreasing the

> > > power consumption from 48mA to 2mA before the module is connected

> > >

> > > ATSSN,UsarioSerial //Change service name (virtual serial

> > > port service)

> > > ATSW25,0,1,1,0 //Prevent communication before connected

> > > - i.e. after this command, you can reconfigure BlueSmiRF only when it

> > > is connected, and you

> > > get out of the data mode using the escape sequence. This is

> important,

> > > because the randomly

> > > received and translated IR bytes will be ignored, and will not

> > > accidentally reconfigure the module.

> > >

> > > ATSW24,2,1,0,0 //Turn off verbal responses. This is

> > > important, because otherwise the BlueSmiRF will be talking to the RCX

> > > each time you open or

> > > close the port (CONNECT, NO CARRIER strings). After this command, the

> > > BlueSmiRF will output only

> > > data.

> > >

> > > ATSW20,10,1,0,1 //Change communication parameters to RCX

> > > default: 2400-odd-1 and store them to flash.

> > >

> > > after I made this configuration I lost contact with the Bluesmirf.

> > >

> > > I hope this information give you the tools for get me a help with my

> > > problems, If there is not solution I will send you back the

> Bluesmirfs

> > > with problems using the returns policy exposed in

> > > [http://www.sparkfun.com/commerce/return\_policy.php](http://www.sparkfun.com/commerce/return_policy.php).

> > >

> > >

> > > I apreciate your help.

> > >

> > >

> > > Diego Gonzalez.

> > >

> > >

> > >

> > >

> * * *

> > > > Date: Thu, 5 Jul 2007 12:52:53 -0600

> > > > From: [level1@sparkfun.com](mailto:level1@sparkfun.com)

> > > > To: [diegoagonzalez@hotmail.com](mailto:diegoagonzalez@hotmail.com)

> > > > Subject: Re: FW: PLEASE SOME HELP ABOUT BLUESMIRF !!!

> > > >

> > > > Hi Diego,

> > > >

> > > > For your first problem can you just confirm something for me,

> > > > first just power up the module with no shorts in it, then open up

> > > > hyperterminal at the 9600 baud rate with no flow control. Then

> type +++

> > > > and 1 “enter” character and let me know what happens.

> > > >

> > > > for your second problem it seems that you have probably killed the

> > > > dongle. We can have a look at it but it is probably dead and you

> will

> > > > need to get a new one. If you would like to return it, please

> review

> > > the

> > > > returns policy here :

> [http://www.sparkfun.com/commerce/return\_policy.php](http://www.sparkfun.com/commerce/return_policy.php)

> > > >

> > > > Please note, depending on whether the device was altered or if

> it was a

> > > > manufacturing defect will determine if we can service your

> return. If

> > > > your order meets these requirements, please return the item to:

> > > >

> > > > Spark Fun Electronics

> > > > Atn: Returns

> > > > 2500 Central Ave.

> > > > Suite Q

> > > > Boulder, CO 80301

> > > >

> > > > Please include the original order # and a note about what the

> > > problem was.

> > > >

> > > > -Support

> > > >

> > > > diego gonzalez wrote:

> > > > >

> > > > >

> > > > >

> > > > >

> > > > >

> > >

> * * *

> > > > >

> > > > >

> > > > > Hi, I wrote you before ( 15 days a go) but I didn`t get any answer

> > > > > from you.

> > > > >

> > > > > I had posted two messages in your forum without an answer with the

> > > > > author “diegoagonzalez”. This are the messages:

> > > > >

> > > > >

> > > > >

> > > > > \*_ **SECOND MESSAGE** _

> > > > >

> > > > >

> > > > > Posted: Wed Jun 27, 2007 5:48 pm Post subject: Bluesmirf

> > > > > imposible to configure

> > > > >

> > > > >

> > > > > -----_ **FIRST PROBLEM** _-----

> > > > > The situation:

> > > > > I have 3 Bluesmirf and learning how to use the master and slave

> > > > > configuration I get to made autoconnection configuring using my

> > > > > BlueDongle and the BLuesoleil software:

> > > > >

> > > > > ATDM,00A09611FBBC,1101

> > > > > ATSW25,1,1,0,0

> > > > > on my master, 00A09611FBBC is the Slave direction.

> > > > >

> > > > >

> > > > > Both, Master and Slave are working with the factory default baud

> > > > > rate.

> > > > > They autoconnect and the red led turn on in both and the slave can

> > > > > transmit data to the master, and if I use +++ I can to configure

> > > > > the slave settings.

> > > > >

> > > > > The Hardware configuration is:

> > > > > PC-COM1 ↔ MAX232 ↔ RX and TX BluesmiRF Master

> > > > > PC-COM2 ↔ MAX232 ↔ RX and TX BluesmiRF Slave

> > > > >

> > > > > The BIG PROBLEM (Number one) is that I want to get back My Master

> > > > > to Factory default settings but I can not access to it and make

> > > > > the ATFRST command, there is no response to any command (+++;

> > > > > ATUCL), The only thing I get is by my Hyperterminal COM1 is "NO

> > > > > ANSWER" every 40 seconds and my Blue Dongle dont detect the Master

> > > > > too.

> > > > >

> > > > > I have try to get access to master connecting RX with TX, and

> > > > > connecting RTS with CTS of the Bluesmirf, also try to reset

> > > > > manually by putting a 5v voltage on PIO 4, but nothing change. The

> > > > > normal state of the master if there is not a slave is flashing the

> > > > > green light and leaving the message “NO ANSWER” every 40 seconds

> > > > > on my COM1.

> > > > >

> > > > > -----_ **SECOND PROBLEM** _-----

> > > > > Configuring one Bluesmirf I made some changes that I can not

> > > > > remember now, the thing is that when I turn it on non of leds

> > > > > (green or red) flash, The current goes down to 10 mA aproximatly.

> > > > > Nor using my bluedongle neighter using the RX and TX of the

> > > > > Bluesmirf to configure get to works, there is not answer to +++

> > > > > command by any way.

> > > > >

> > > > >

> > > > > PLEASE ANYONE HELP ME, IT´S FOR MY GRADUATION PROJECT!!!

> > > > >

> > > > >

> > > > >

> > > > >

> > > > >

> > > > >

> > > > >

> > > > > \*_ **FIRST MESSAGE** _

> > > > >

> > > > > Posted: Thu Jun 14, 2007 6:12 pm Post subject: Bluesmirf,

> > > > > Auto-Master problem with BlueRadio

> > > > >

> > > > >

> > > > >

> > > > > Hello,

> > > > >

> > > > > My name is Diego and I 'm from Cali, Colombia. I bought several

> > > > > Bluetooth Modem - BlueSMiRF from Spark Fun Electronics and I’m

> > > > > configuring the Bluetooth Modems using ATMP COMMANDS.

> > > > >

> > > > > The problem is that I configured a Bluetooth Modem to be as

> > > > > Auto-Master (ATSW25,1,1,0,0) but I forgot to put the ATSMA command

> > > > > with the Slave Address and the UUID, when I try to access the

> > > > > Bluetooth Modem using the serial RX and TX I 'm not getting any

> > > > > answer, I try also to using the +++ command from the Blue Dongle.

> > > > >

> > > > > Talking about power compsution when I turn on the Blueradio the

> > > > > Current is close to 40mA and after a few seconds (1 or 2) goes to

> > > > > almost 1mA or nothing.

> > > > >

> > > > > the version is 3.5.2.1.3.0. I tried putting 3.3V on PIO4 on the

> > > > > start up of the Blueradio, but everything continues like it was.

> > > > >

> > > > > I made the operation with other Bluetooth Modem as Master and I

> > > > > can get to comunicate to it using the serial RX and TX.

> > > > >

> > > > >

> > > > > What do I need to do?.. Anyone with the Same Problem?..

> > > > >

> > > > > Thank for your help, I will apreciate your answer

> > > > >

> > > > > * * *

> > > > >

> > > > > Finally I measure the average current of my 3 Bluesmirfs:

> > > > >

> > > > > INPUT VOLTAGE 3.3V:

> > > > >

> > > > > Master Bluesmirf not connected (green light): 50mA

> > > > > Slave Bluesmirf not connected (green light): 50mA

> > > > > The Other Bluesmirf (no light): 10.34mA

> > > > >

> > > > > Master Bluesmirf connected to Slave(red light): 30mA

> > > > > Slave Bluesmirf connected to Master(red light): 18mA

> > > > >

> > > > > INPUT VOLTAGE 5V:

> > > > >

> > > > > Master Bluesmirf not connected (green light): 70mA

> > > > > Slave Bluesmirf not connected (green light): 58mA

> > > > > The Other Bluesmirf (no light): 14.4mA

> > > > >

> > > > > Master Bluesmirf connected to Slave(red light): 35mA

> > > > > Slave Bluesmirf connected to Master(red light): 21mA

> > > > >

> > > > >

> > > > > I’ll apreciate a fast answer, thanks for your attention.

> > > > >

> > > > >

> > > > >

> > > > > Diego Alejandro Gonzalez

> > > > > University Javeriana

> > > > > Cali

> > > > > Colombia

---

<div class="post-metadata">

**Author:** ![PIND](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@PIND](https://community.sparkfun.com/u/PIND)\
**Post date:** [February 9, 2011, 4:31pm UTC](https://community.sparkfun.com/t/bluesmirf-returns-no-services-found-if-connect-d/3598/4 "2011-02-09T16:31:28Z")

</div>

Hi Everyone,

I am trying to connect to my android phone to BlueSMiRF it did open and connect a socket but red light goes off in 0.5 seconds and it gives write error which means that socket gets close somehow. this is what the BlueSMiRF gives out:

.CONNECT,F9DC76DC405E

.

.DISCONNECT

Here is my code to send some text to BlueSMiRF:

_while (true)_

- {\*

- //getCommand();\*

- if(CurrCommand != null)\*

- {\*

- this.myWrite(CurrCommand.getBytes());\*

- }\*

- else\*

- {\*

- this.myWrite(“Nothing to write”.getBytes());\*

- }\*

- // Sleep\*

- try{Thread.sleep(50);}catch(InterruptedException e){} //500ms seems Timeout\*

- try\*

- {bytes = istream.read(buffer);}\*

- catch(IOException e)\*

- {mySendMessage(MSG\_CONNECT\_THREAD\_READ\_ERROR); }\*

- }// End Infinite While\*

I would appreciate any help.

Thanks a lot!
