Pages: [1]   Go Down
Author Topic: Connecting 2 Bluetooth devices  (Read 444 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: