Hi, I understood the question. Arduino’s only got one serial port, so it can’t be connected to the PC at the same time as it’s connected to smirf, if that’s what you had in mind?
The Arduinos connect fine to mac and pc via serial USB.
Hi, I understood the question. Arduino’s only got one serial port, so it can’t be connected to the PC at the same time as it’s connected to smirf, if that’s what you had in mind?
The Arduinos connect fine to mac and pc via serial USB.
Ok, does serial between MAC and Arduino work at 115200 Baud? That's really what I'm after. Eliminate all the possibilities.Ryansway:
Hi, I understood the question. Arduino’s only got one serial port, so it can’t be connected to the PC at the same time as it’s connected to smirf, if that’s what you had in mind?The Arduinos connect fine to mac and pc via serial USB.
Have you tried to connect to the SmiRF with BT only from MAC. You’ll just need to power it and tie RTS to CTS. Try 9600 8N1 (looking at the BlueRadios documentation).
Try a simple AT to see if you get an OK
If that works type ATSI,8
If you get 0027,0000,0000 that’s 9600Baud 8,N,1
FWIW,
Jay
Jay C:
Ok, does serial between MAC and Arduino work at 115200 Baud? That’s really what I’m after.
Yes
Jay C:
Have you tried to connect to the SmiRF with BT only from MAC.
Yes
Getting no response. I also followed the roving network docs, and no luck.
The Red light goes on when zterm is on, but the smirf isn’t talking back, tried
AT
Nothing
I ran through “every” baud rate, and still nothing.
I also tried tying the tx+rx together, as some have suggested, and nothing.
Something just happened. I untied the tx+rx, restarted zterm, typed in AT, and “it replied” with “?”
So now the red light is on, and the green light is flashing, fast. Anything I type in zterm, gets a “?”
What does that mean?
…and
to get the green light to flash quickly, I type in $$$ it responds with “CMD” then anything else I type in gets a “$”
I typed in SM,1
It replied
AOK
Now we’re getting somewhere
AOK
h
*** SET COMMANDS ***
SA,<1,0> - Authentication
SB, - Send Break
SC, - Service Class
SD, - Device Class
SE,<1,0> - Encryption
SF,1 - Factory Defaults
SI, - Inquiry Scan Window
SJ, - Page Scan Window
SL,<E,O,N> - Parity
SM,<0-5> - Mode (0=slav,1=mstr,2=trig,3=auto,4=DTR,5=Any)
SN, - Name
SO, - conn/discon Status
SP, - Pin Code
SR, - Remote Address
SS, - Service Name
ST, - Config Timer
SU, - Baudrate
SW, - Sniff Rate
SX,<1,0> - Bonding
SY, - TX power
SZ, - Raw Baudrate
S7,<0-1> - 7bit data
S~,<0-3> - Profile (0=SPP,1=DCE,2=DTE,3=MDM
S$, - CMD mode char
S@, - io port dir
S&, - io port val
S%, - io boot dir
S^, - io boot val
S*, - pio(8-11) set
*** DISPLAY ***
D - Basic Settings
E - Extended Settings
G - Stored setting
GB - BT Address
GK - Connect Status
G& - I/O Ports
V - Firmare version
*** OTHER ***
C, - Connect
F,1 - Fast Mode
I,, - Device Scan Inquiry
K, - Kill (disconnect)
L, - Link Quality
P, - Pass Thru
Q - Quiet (no discovery)
R,1 - Reboot
T,<0,1> - send data in CMD mode
U,,<E,O,N> - Temp Uart Change
Z - low power sleep
& - Read switches
Firmware version
V
Ver 4.26 10/03/07
(c) Roving Networks
Basic Settings
Settings
BTA=000666006758
BTName=FireFly-6758
Baudrt(SW4)=115K
Parity=None
Mode =Trig
Authen=0
Encryp=0
PinCod=1234
Bonded=0
Rem=NONE SET
So that got not very far, the characters echoed from the micro, are still “ǩǩǩǩǩǩ” which I guess is it’s idea of the word “Echo”.
Micro is transmitting at 115200, so that seems to match the smirfs settings.
btw, AT does nothing, it doesn’t understand that command. Which leads me to the question … what is this?
So it all works happily now on zTerm, but still won’t work on ArduinoIDE mac, or pc.
I’ll write a RB application and see if I can duplicate zTerm’s success.
I discovered some very helpful information, at a blog (but I can’t post it’s address because of a rather bothersome word blocking thing this forum has. I’ll try another time.)
For anyone using these “new” Bluesmirf / FireFly’s with Arduino’s, it’s worth a read.
Try these key words in google
Project 3 Complete Bluesmirf
Thanks to TriggerDog and everyone here for their assistance. If I make any new discoveries, I’ll be sure to post back.
Wow, they have changed things a lot since I bought mine. Sorry for the confusion.
Why is your mode set to trigger versus the factory default of slave?
You asked about the green LED blink rate:
MODE GREEN LED blink rate
Configuring 10 times per second
Startup/Config Timer 2 times per second
Discoverable/Inquiring/Idle Once per second
Connected Solid ON
So now, what are the DIP switch settings you are using?
Jay C:
Wow, they have changed things a lot since I bought mine. Sorry for the confusion.Why is your mode set to trigger versus the factory default of slave?
You asked about the green LED blink rate:
MODE GREEN LED blink rate
Configuring 10 times per second
Startup/Config Timer 2 times per second
Discoverable/Inquiring/Idle Once per second
Connected Solid ON
So now, what are the DIP switch settings you are using?
Not at all your help was appreciated. With sparkfun on the otherhand, I’m not overly impressed that I’ve spent 2 days chasing ghosts, they should at least set the mode to “slave” and “9600” which I’ve now done. At least those settings would more closely match the older model.
There’s obviously still something not set correctly, because I can only get it working in Zterm. Nothing XP has got can connect to it (discovers and delegated to com port works, but nothing else). And in mac, even the Arduino IDE serial monitor is saying the device is ‘busy’ and it can’t connect to it, same with proce55ing, which is saying the same thing.
On XP, the Arduino IDE serial monitor opens, but nothing comes out, and the “red” connect light doesn’t go on. HyperTerminal and a custom RealBasic app, I had no luck either.
So I’m at a loss really, zTerm is no good to me, it needs to work like a WT11 and be able to be used by applications that read the serial data. I purposely avoid buying anything first off the shelf because you end up being a guinea pig to find all the “undiscovered” glitches, and on the surface, this new FireFly has plenty.
Ryansway:
So now, what are the DIP switch settings you are using?
Not at all your help was appreciated. With sparkfun on the otherhand, I’m not overly impressed that I’ve spent 2 days chasing ghosts, they should at least set the mode to “slave” and “9600” which I’ve now done. At least those settings would more closely match the older model.
There’s obviously still something not set correctly, because I can only get it working in Zterm. Nothing XP has got can connect to it (discovers and delegated to com port works, but nothing else). And in mac, even the Arduino IDE serial monitor is saying the device is ‘busy’ and it can’t connect to it, same with proce55ing, which is saying the same thing.
On XP, the Arduino IDE serial monitor opens, but nothing comes out, and the “red” connect light doesn’t go on. HyperTerminal and a custom RealBasic app, I had no luck either.
[/quote]
Not so fast you are almost there. When you say XP won’t connect to it:
ref guide:
7 COMMON PROBLEMS and QUESTIONS:My Bluetooth client can see the FireFly and its serial service, but I can’t connect:
This is most likely caused by a security setting on your client. FireFly does support authentication by default if the client requires it (using default pincode of “1234”,) but for ease of use, you may want to turn security off on your client. Some clients have these setting off by default, others have them on. To check and disable security:
Unfortunately I did all that because it’s in the trouble shooting section of the spec sheet.
Failing that, I changed the COM port numbers to 8 and 9 (they were 10 & 11). That didn’t work either. It’s been suggested Arduino IDE might have issues with com port numbers over 10, so I eliminated that possibility.
Restarted the device, no luck. Restarted XP, no luck. Turned off FIFO buffers, no luck (turned it back on again).
Explored every possible configuration of HyperTerminal, no luck.
Perhaps there new ones only work with Vista ![]()
I downloaded TeraTerm ver 2.3.2
It only lets you select com’s 1 - 4, the program doesn’t scan to see what com ports are available, and you can’t change the numbers yourself. It looks like quite an old program, one that sparkfun suggested I try.
I’m kind of at a loss. With my BT dongle it uses the Toshiba BT stack. I can assign the USB BT dongle whatever com port I want (it’s com40). This configuration is complete separate from Hyperterm com port settings. In the BT manager I can also configure the pin.
So what I do first is connect/pair the USB dongle to the SMiRF. I don’t have to do this, I can set the BT to connect any time the BT is opened. All this does is establish a “virtual” com port. Hyper term doesn’t know it’s going over a wireless connection.
My hyperterm settings are
115200, 8, N, 1 and Flow control to None
No echo, no extra LF, ANSIW emulation
VT100 Term
You are almost there, don’t give up. Have you disabled the security?
Jay C:
I’m kind of at a loss. With my BT dongle it uses the Toshiba BT stack. I can assign the USB BT dongle whatever com port I want (it’s com40). This configuration is complete separate from Hyperterm com port settings. In the BT manager I can also configure the pin.So what I do first is connect/pair the USB dongle to the SMiRF. I don’t have to do this, I can set the BT to connect any time the BT is opened. All this does is establish a “virtual” com port. Hyper term doesn’t know it’s going over a wireless connection.
My hyperterm settings are
115200, 8, N, 1 and Flow control to None
No echo, no extra LF, ANSIW emulation
VT100 Term
You are almost there, don’t give up. Have you disabled the security?
Regarding security. Yes, the device has been set up with “no passkey”. The “is required” is set to zero by default.
I used your exact HyperTerminal settings, except 9600 baud per the changes I made, no luck.
The BT stick I’m using, works fine with the WT11, and I guess since XP can discover the FireFly and assign it com ports, then that part works ok as well. Even the device manager can see it, and it can provide information about the device, like ‘device instance=BTHENUM\etc’, ‘power state mappings, S0->unspecified - S1->unspecified etc’.
This info regarding trouble shooting from the documentation:-
From your PC desktop, click My Bluetooth Places, go to the Bluetooth Device configuration (or Advanced Configuration) drop down menu, click on the client applications tab, Select the Bluetooth serial port application name, and click on the properties button, if “secure connection”, or “authentication”, or “encryption” is checked, un check it.
I’ve got XPSP2, and there is “nothing” anywhere, called “My Bluetooth Places”.
There is “Bluetooth devices”, it has a “properties” button, but it doesn’t have a “client applications” tab.
So I’m wondering if in fact this device is only designed to work on Vista (I don’t have that).
The device was set up without passkey enabled, there’s nothing about “encryption” anywhere.
I’ve made some progress.
I downloaded an application, it is called “Docklight V1.7”.
It connected to COM9, and it is receiving the data.
The red light on the FireFly lit up, and in the monitor the output looks like this:-
Echo
Echo
Echo
Echo
So, a couple of things.
When Docklight established the connection, and windows item popped up, and said “A bluetooth device is asking permission to be connected”, or something like that. It then prompted for the PassKey, I typed it in, and the connection was established.
The Arduino IDE can’t see COM9 (assigned as outgoing FireFly-6758 SPP), only COM8 (incoming FireFly-6758), since Docklight can, I’m guessing there’s a problem with Arduino, and proce55ing, HyperTerminal, and realBasic.
Because the earlier versions of BlueSmirf are known to work with Arduino, wiring, proce55ing, HyperTerminal, and realBasic, then it’s more than likely the problem is that the new version of BlueSmirf (FireFly) isn’t compatible with Arduino, Proce55ing, Hyperterminal, wiring and realBasic.
And that’s a BIG! problem.
I need a device thats backwards compatible, and this one obviously is not. I’ve spent 3 days trying to get this to work, a BT device should only at the very most, take 5 minutes to setup.
If anyone else is having the same “joys” with this incarnation of blueSmirf, please contact me.
This tells me you have not disabled security. Otherwise you wouldn't need the passkey.Ryansway:
So, a couple of things.When Docklight established the connection, and windows item popped up, and said “A bluetooth device is asking permission to be connected”, or something like that. It then prompted for the PassKey, I typed it in, and the connection was established.
There shouldn't be 2 com ports for 1 connection. This is very confusing. What BT stack are you using. 1 built into XP or the Toshiba one? Success doesn't depend on the terminal software, it depends on your BT configuration. Are you using a BT dongle or is it built into your MB? Can you see a BT connection manager or the like?Ryansway:
The Arduino IDE can’t see COM9 (assigned as outgoing FireFly-6758 SPP), only COM8 (incoming FireFly-6758), since Docklight can, I’m guessing there’s a problem with Arduino, and proce55ing, HyperTerminal, and realBasic.
Does XP even have a “My Bluetooth Places”? That’s where security is “supposed” to be disabled. I’ve searched everywhere, and can’t find anything called “My Bluetooth Places” in WinXPSP2
The FireFly settings, Passkey is set at 0 by default, that hadn’t changed when I looked.
When I initially added the device, I made sure encryption and passkey were disabled.
I’m using a BT dongle, which apparently works fine using Docklight.
The WT11, uses COM6 and COM7, so I’m not sure why FireFly using COM8 and COM9 would be any different?
I think you get MyBlueTooth Places when you install the driver they mention in the instructions, it’s software dependent.
Also, I had a look at my com ports managed by my BT software. It has 10 com ports set up and a control panel to add virtual com ports (to say map com 40 to com 4).
I’ll leave you alone, I don’t think I’m helping much. I bought my SMiRF over 2 years ago and the company name was called Blue Radios so maybe Sparkfun switched hardware. The new company is Roving Networks. Is this the one you have? http://www.sparkfun.com/commerce/produc … ts_id=8332 It’s different from either of the other two as it uses a Philips chip.
Jay