Little help with Processing code

So I got my new, nifty bluetooth module which should be a simple data-pipe i.e. data in/same data out. It came default in slave mode but alas, at 115,200 baud! I need this guy down to 9600. I am using a simple bluetooth dongle on my PC and the bluetooth module is good-to-go on the robot. I need to simply send it SU,96 during the first few moments during it's start-up. I have some simple processing code, but I am a little confused as to ASCII and hex etc. I want to be sure I am sending the right comands intstead of sending the wrong data and configuring it wrong (which I will later not be able to undo).

Could anyone be so kind as to send me a nice, little cut-and-paste chunk of code I can zjink into my processing software as to send my little module SU,96?

Here is the Bluetooth module

Here is the data sheet with the important info @ section 3.3

Again, I am using processing and my com port is com40.

do you need to change baud

do you need to change baud rate on the fly?

if not, easy way is to just hyperteminal to the module and send

 

$$$ -> config mode

SU,96 -> Baud to 9600

— -> to exit config

 

 

 

you need to get that bugger

you need to get that bugger into the command mode first by sending it $$$. that should cause it to altnerate the red and green leds.

Once in that mode then you’d send the baud command.

 

once done, send the — command to stop the command mode.

I had to do something similar on mine when I set the profile to dun-dte mode so I couldn’t communicate iwth the device via bt to program it. luckily I had my baud rate down to 4800 and was able to program it via the serial pins on a picaxe…

 

It’s odd that it’s set to 115200, I was pretty sure it was set to 9600 by default…

 

 

 

 

I tried…

I downloaded hyperterminal to do just that however, I quickly found that I don’t know how to use hyperterminal! I have what looks like a blinking prompt but I can’t type anything in. I found ways of sending files but no simple box just to type and say “send this”. Even more frustrating, I know that my bluetooth module has connected to hyperterminal both from the computer side and based on the indicator lights on the module itself. Maybe I need some instruction (step-by-step --like I am a 4-year-old) on how to use hyperterminal. I have already set-up a connection, set it to the unit’s default baud rate and like I said, the computer found the unit.

Gimme what you got.

this should take you all the

this should take you all the way

http://www-inst.eecs.berkeley.edu/~ee192/sp10/design/abe_setup_bluesmirf.pdf

 

OH!

and where it reads "In the HyperTerminal window type +++ followed by pressing the Enter key", just change +++ by $$$

 

By the by ctc, this is what

By the by ctc, this is what I’m currently working on.

The basic communication is working, and at this point with the computer, db and uproc. I’m midway through the wiring schematic and just need to test and code out the two proc version. currently the 08m is acting like an echo server. Anything I type gets sent back to me.