Bluesmirf usb serial


















There is certainly a lot of confusion about what radio, and therefore what command set, is in these units. Perhaps they changed at some point.

I don't know what this means, because that doesn't seem to be documented anywhere. I think it just means "power good, no Bluetooth connection. Any idea why they might not work for me? Options 7 posts Page 1 of 1 7 posts. We have created lots of YouTube videos just so you can achieve [ The best flat phpBB theme around.

Fine craftmanship and [ Arduino M0 Orginal Arduino. Arduino Due Orginal Arduino. Write review. ScanaLogic 2. Teensy 3. Polymer Lithium Ion Battery - mAh 3.

Soldron Metal Body Desoldering Pump. Message Send. Reviews [more]. I want to know about the produ. What do we send over that serial interface, though? That's where we need to look at the the firmware and the Bluetooth module's operation modes. Happily, most of the assembly on these modules is done for you; you don't need to learn how to solder SMD components just yet. However, before you can begin using these Bluetooth modules, you'll need to solder something into the six plated-through-holes to form a solid electrical connection.

What you solder into the holes depends mostly on what you're going to connect the device to. If you've got a Bluetooth Mate, and want to connect it directly to an Arduino Pro, you may want to throw a right-angle female header on there.

Another good option, which makes the board breadboard-compatible, is male-headers. A third, ever-reliable option is to solder wires directly to the holes. Right-angle male or female headers are good options for assembly. They make the modules breadboard or jumper-wire compatible. We need to connect the Bluetooth modems to devices that can send and receive serial signals. Voltages should be between 3. There are loads of options here, for this tutorial we'll use an Arduino.

This will help to avoid bus contention and will make sure the Bluetooth modem doesn't receive any spurious data during a sketch upload. Here's the connections we'll make for the example code later in this tutorial:.

The TX-O and RX-I pins could really be connected to any digital pin besides 0 and 1 , so if you need 2 and 3 for something else, feel free to move those around.

Half of the hardware hookup is done. We still need to create a wireless connection to another Bluetooth device. Before we can delve further into that, though, we need to understand more about the Bluetooth modem's firmware. A serial interface is all it takes to control these Bluetooth modules and send data through them.

They act, essentially, like a data pipeline. Serial data that goes into the module from the RX-I pin , is passed out the Bluetooth connection. Data coming in from the Bluetooth side is passed out the serial side out the TX-O pin. Establishing this data pipeline is a two step process. First, we need to connect something capable of sending and receiving serial data to the header of the Bluetooth modem.

We achieved this in the Hardware Hookup phase by connecting an Arduino to the serial header, but any microcontroller with a UART could work. With the device connected we need to configure the serial port to work at the same baud rate the the modem is configured to -- they default to bps 8-N Secondly, on the Bluetooth end of things, we need to establish a wireless connection between the modem and another Bluetooth device.

The only stipulation here is the other Bluetooth device must support SPP which most do. This connection involves a pairing process similar to connecting any other Bluetooth devices together.

More on that later. Let's talk a bit more about the serial interface. Controlling the Bluetooth module and sending data through it are two very separate operations, but they're both done via the serial interface. To differentiate between these two forms of data, the Bluetooth modules implement two different communication modes. Command mode is used to configure the Bluetooth module. Characteristics like the device name, baud rate, PIN code, and data rate can be adjusted in command mode.

This is also where action commands are sent to the module, which can tell it to connect to a device or scan for other modules. In data mode , the Bluetooth module acts as a transparent data gateway. Any data received over the Bluetooth connection is routed out the module's TX pin. And data sent to the module's RX pin is piped out over the Bluetooth connection.

The configuration timer is the one obstacle to watch out for when entering command mode. The config timer begins counting as soon as the Bluetooth modem is turned on, and once it's done counting, you'll be unable to enter config mode unless you cycle power.

By default the config timer is set to 60 seconds, however this can be adjusted, or even turned off that's the ticket! These help to indicate the status of the module. Never forget the importance of blinkies! The green LED will illuminate when a wireless connection is formed. The "Stat" LED can indicate that the module is in one of three states, depending on how fast it blinks:. If you're having trouble getting the module to enter configuration mode, make sure the timer hasn't run out by checking for a very slow blink rate.

Control of the Bluetooth modems is achieved through a series of AT commands, all of which are documented in the Advanced User's Guide. If you want to get the most out of these modules, make sure you read through that. The commands are split into five categories: set, get, change, action, and GPIO commands. Chapter 2 of the User's Guide covers each of the commands in detail. Appendix B is a quick reference guide -- an excellent resource. For the benefit of future Google searchers, here is how you interface with a BlueSmirf, sort of without Arduino:.

The Trendnet dongle comes with a "BlueSoleil Space" software package. This helps to interface the dongle with the computer. It is probably not needed, and you could do this through windows. I will describe these steps with BlueSoleil instead of Windows' interface since it's how I did it. Plug in your dongle and make sure it works with your computer.

You could setup a connection to a bluetooth speaker or phone to test it out. Connect Rx and Tx together temporarily. I did not find this to be the case, and found I could enter command mode at any time. Find the BlueSmirf in the BlueSoleil software and pair to it. Then, using the "Serial" icon along the top third from left in my version , connect to the bluetooth serial port first you pair with it, then you connect to its serial port.

In my case it says this is COM5. Open Arduino IDE. Then open the Serial Monitor. Set the Baud to the default of the BlueSmirf , and the line ending type next to baud to "no line ending". From command mode you change settings of the BlueSmirf using commands from the manual sparkfun provides. Make sure to change line ending type back to "newline" before entering commands.

You can enter a "D" to see a list of the current settings. Type "E" to see even more. From here, I set baud to with the command "SU, 96", because my display operates best at If you change the baud, you will need to reconnect in Arduino in the new baud after power is cycled commands take effect after power cycling.



0コメント

  • 1000 / 1000