Go Down

Topic: Connecting 2 Bluetooth devices (Read 544 times) previous topic - next topic

hbx2013

Hi,

I'm using an Arduino Mega to collect data from a digital indicator (http://www.mahr.com/index...&ContentID=12896).

Arduino Mega <-(UART) <- BluesMIrf Gold <-(Bluetooth) <- RN22XP Bluesnap<- (RS232C) <- MarCator1075R

See my settings for the Firefly(blueSmirf) and the BlueSnap below.

I've done the pairing: The Firefly and Bluesnap both have solid green light when in range, and red when out of range, eg diconnected.
The C,xxxxxxxx (connect)-command on Bluesnap fails everytime with the error "ERR-Connected"
C,xxxxxxxxx on Firefly gives me "Connect failed".


My main question is; How do i get the data from the indicator?  Do i have to use the C-command or is it enough to just pair the modules and have a connection?
Am i supposed to use the GPIO commands? if so... is there a better tutorial on how to use these? (i've read all the manuals i could find, but can't figure out how to use the GPIO-commands in this case). The example in the manuals i found are really bad (the same example in every manual)

Current Module Settings:

FIREFLY/BlueSMIRF

***Settings***
BTA=000666492DB5
BTName=FireFly-2DB5
Baudrt=9600
Parity=None
Mode  =Auto
Authen=0
Encryp=0
PinCod=4321
Bonded=0
Rem=000666080127
***ADVANCED Settings***
SrvName= SPP
SrvClass=0000
DevClass=1F00
InqWindw=1F00
PagWindw=0100
CfgTimer=60
StatuStr=NULL
SWitches
1=OFF
2=OFF
3=OFF
4=OFF
***OTHER Settings***
Profile= SPP
CfgChar= $
SniffEna=0
LowPower=0
TX Power=0
IOPorts= 0
IOValues=0
DebugMod=0
RoleSwch=0
Ver 4.77 05/12/09
(c) Roving Networks





_______________
RN-220XP
***Settings***
BTA=000666080127
BTName=BlueSnapXP-0127
Baudrt=9600
Parity=None
Mode  =Slav
Authen=0
Encryp=0
PinCod=4321
Bonded=0
Rem=NONE SET
***ADVANCED Settings***
SrvName= SPP
SrvClass=0000
DevClass=1F00
InqWindw=0100
PagWindw=0100
CfgTimer=60
StatuStr=NULL
***OTHER Settings***
Profile= SPP
CfgChar= $
SniffEna=0
LowPower=0
TX Power=0
IOPorts= 0
IOValues=0
DebugMod=0
RoleSwch=0
G& = 28
GK = 1
Ver 4.77 XP 05/12/09
(c) Roving Networks
##################



On Bluesnap:
C,000666492DB5 ->  ERR-connected
On firefly:
C,00666080127 -> TRYING -> CONNECT failed

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy