Skip to main content
Arduino

Return to Question

added 11 characters in body
Source Link
Thomas S.
  • 566
  • 3
  • 8
  • 21

I currently try to connect an Arduino Micro/Leonardo/32u4 to an ELM327 Bluetooth dongle using a HC-05 Bluetooth shield from iTeadStudio. I also have similar problems trying to connect to a bluetooth dongle (with added serial connection) on my PC.

The basic AT-command communication works, but I haven't found out yet why AT+PAIR or AT+LINK are failing and what should be done to avoid this (I've done dozens of Serial Monitor command iterations). Until now I haven't found a command sequence that reliably connects. What I've tried so far (from different documentation and example codes):

Check general AT command set:

AT
> OK

Reset to default values:

AT+ORGL
> OK

Set master mode and check it:

AT+ROLE=1
> OK
AT+ROLE?
> +ROLE:1
> OK

Connect only to the specified bluetooth address:

AT+CMODE=0
> OK

Reset and initialize:

AT+RESET
> OK
AT+INIT
> OK

Configure inquiring mode:

AT+INQM=1,9,48
> OK

Inquire:

AT+INQ
> +INQ:12:34:567890:1F1F,7FFF
> OK
AT+STATE?
> +STATE:INQUIRING

Try to stop inquiring:

AT+INQC
> OK
AT+STATE?
> +STATE:INQUIRING
> OK

Reset and initialize again (otherwise we can't leave the inquiring state):

AT+RESET
> OK
AT+INIT
> OK
AT+STATE?
> +STATE:INITIALIZED
> OK

Try to pair with the found device (my PC asks for the 1234-password and creates a serial port):

AT+PAIR=12,34,567890,20
> FAILOK
AT+STATE?
> +STATE:PAIRED

Try with binding before:to connect

AT+BIND=12,34,567890
> OK
AT+PAIR=12,34,567890,20
> FAIL

Linking of course also fails:

AT+LINK=12,34,567890
> FAIL
...

Does someone have some hints for finding the right sequence?

I currently try to connect an Arduino Micro/Leonardo/32u4 to an ELM327 Bluetooth dongle using a HC-05 Bluetooth shield from iTeadStudio. I also have similar problems trying to connect to a bluetooth dongle (with added serial connection) on my PC.

The basic AT-command communication works, but I haven't found out yet why AT+PAIR or AT+LINK are failing and what should be done to avoid this (I've done dozens of Serial Monitor command iterations). Until now I haven't found a command sequence that reliably connects. What I've tried so far (from different documentation and example codes):

Check general AT command set:

AT
> OK

Reset to default values:

AT+ORGL
> OK

Set master mode and check it:

AT+ROLE=1
> OK
AT+ROLE?
> +ROLE:1
> OK

Connect only to the specified bluetooth address:

AT+CMODE=0
> OK

Reset and initialize:

AT+RESET
> OK
AT+INIT
> OK

Configure inquiring mode:

AT+INQM=1,9,48
> OK

Inquire:

AT+INQ
> +INQ:12:34:567890:1F1F,7FFF
> OK
AT+STATE?
> +STATE:INQUIRING

Try to stop inquiring:

AT+INQC
> OK
AT+STATE?
> +STATE:INQUIRING
> OK

Reset and initialize again (otherwise we can't leave the inquiring state):

AT+RESET
> OK
AT+INIT
> OK
AT+STATE?
> +STATE:INITIALIZED
> OK

Try to pair with the found device:

AT+PAIR=12,34,567890,20
> FAIL

Try with binding before:

AT+BIND=12,34,567890
> OK
AT+PAIR=12,34,567890,20
> FAIL

Linking of course also fails:

AT+LINK=12,34,567890
> FAIL
...

Does someone have some hints for finding the right sequence?

I currently try to connect an Arduino Micro/Leonardo/32u4 to an ELM327 Bluetooth dongle using a HC-05 Bluetooth shield from iTeadStudio. I also have similar problems trying to connect to a bluetooth dongle (with added serial connection) on my PC.

The basic AT-command communication works, but I haven't found out yet why AT+PAIR or AT+LINK are failing and what should be done to avoid this (I've done dozens of Serial Monitor command iterations). Until now I haven't found a command sequence that reliably connects. What I've tried so far (from different documentation and example codes):

Check general AT command set:

AT
> OK

Reset to default values:

AT+ORGL
> OK

Set master mode and check it:

AT+ROLE=1
> OK
AT+ROLE?
> +ROLE:1
> OK

Connect only to the specified bluetooth address:

AT+CMODE=0
> OK

Reset and initialize:

AT+RESET
> OK
AT+INIT
> OK

Configure inquiring mode:

AT+INQM=1,9,48
> OK

Inquire:

AT+INQ
> +INQ:12:34:567890:1F1F,7FFF
> OK
AT+STATE?
> +STATE:INQUIRING

Try to stop inquiring:

AT+INQC
> OK
AT+STATE?
> +STATE:INQUIRING
> OK

Reset and initialize again (otherwise we can't leave the inquiring state):

AT+RESET
> OK
AT+INIT
> OK
AT+STATE?
> +STATE:INITIALIZED
> OK

Try to pair with the found device (my PC asks for the 1234-password and creates a serial port):

AT+PAIR=12,34,567890,20
> OK
AT+STATE?
> +STATE:PAIRED

Try to connect

AT+BIND=12,34,567890
> OK
AT+LINK=12,34,567890
> FAIL
...

Does someone have some hints for finding the right sequence?

described commands
Source Link
Thomas S.
  • 566
  • 3
  • 8
  • 21

I currently try to connect an Arduino Micro/Leonardo/32u4 to an ELM327 Bluetooth dongle using a HC-05 Bluetooth shield from iTeadStudio. I also have similar problems trying to connect to a bluetooth dongle (with added serial connection) on my PC.

The basic AT-command communication works, but I haven't found out yet why AT+PAIR or AT+LINK are failing and what should be done to avoid this (I've done dozens of Serial Monitor command iterations). Until now I haven't found a command sequence that reliably connects. What I've tried so far (from different documentation and example codes):

Check general AT command set:

AT
> OK
AT+STATE?
> +STATE+INITIALIZED
> OK

Reset to default values:

AT+ORGL
> OK

Set master mode and check it:

AT+ROLE=1
> OK
AT+ROLE?
> +ROLE:1
> OK

Connect only to the specified bluetooth address:

AT+CMODE=0
> OK
AT+BIND=12,34,567890

Reset and initialize:

AT+RESET
> OK
AT+INIT
> OK
AT+PAIR=12,34,567890,20
> FAIL
AT+LINK=12

Configure inquiring mode:

AT+INQM=1,349,56789048
> FAILOK

Inquire:

AT+INQ
> +INQ:12:34:567890:1F1F,7FFF
> OK
AT+STATE?
> +STATE:INQUIRING

Try to stop inquiring:

AT+INQC
> OK
AT+STATE?
> +STATE:INQUIRING
> OK

Reset and initialize again (otherwise we can't leave the inquiring state):

AT+RESET
> OK
AT+INIT
> OK
AT+STATE?
> +STATE:INITIALIZED
> OK

Try to pair with the found device:

AT+PAIR=12,34,567890,20
> FAIL

Try with binding before:

AT+BIND=12,34,567890
> OK
AT+PAIR=12,34,567890,20
> FAIL

Linking of course also fails:

AT+LINK=12,34,567890
> FAIL
...

Does someone have some hints for finding the right sequence?

I currently try to connect an Arduino Micro/Leonardo/32u4 to an ELM327 Bluetooth dongle using a HC-05 Bluetooth shield from iTeadStudio.

The basic AT-command communication works, but I haven't found out yet why AT+PAIR or AT+LINK are failing and what should be done to avoid this (I've done dozens of Serial Monitor command iterations). Until now I haven't found a command sequence that reliably connects. What I've tried so far (from different documentation and example codes):

AT
> OK
AT+STATE?
> +STATE+INITIALIZED
> OK
AT+ORGL
> OK
AT+ROLE=1
> OK
AT+ROLE?
> +ROLE:1
> OK
AT+CMODE=0
> OK
AT+BIND=12,34,567890
> OK
AT+INIT
> OK
AT+PAIR=12,34,567890,20
> FAIL
AT+LINK=12,34,567890
> FAIL
AT+INQ
> +INQ:12:34:567890:1F1F,7FFF
> OK
AT+STATE?
> +STATE:INQUIRING
> OK
AT+RESET
> OK
AT+STATE?
> +STATE:INITIALIZED
> OK
...

Does someone have some hints for finding the right sequence?

I currently try to connect an Arduino Micro/Leonardo/32u4 to an ELM327 Bluetooth dongle using a HC-05 Bluetooth shield from iTeadStudio. I also have similar problems trying to connect to a bluetooth dongle (with added serial connection) on my PC.

The basic AT-command communication works, but I haven't found out yet why AT+PAIR or AT+LINK are failing and what should be done to avoid this (I've done dozens of Serial Monitor command iterations). Until now I haven't found a command sequence that reliably connects. What I've tried so far (from different documentation and example codes):

Check general AT command set:

AT
> OK

Reset to default values:

AT+ORGL
> OK

Set master mode and check it:

AT+ROLE=1
> OK
AT+ROLE?
> +ROLE:1
> OK

Connect only to the specified bluetooth address:

AT+CMODE=0
> OK

Reset and initialize:

AT+RESET
> OK
AT+INIT
> OK

Configure inquiring mode:

AT+INQM=1,9,48
> OK

Inquire:

AT+INQ
> +INQ:12:34:567890:1F1F,7FFF
> OK
AT+STATE?
> +STATE:INQUIRING

Try to stop inquiring:

AT+INQC
> OK
AT+STATE?
> +STATE:INQUIRING
> OK

Reset and initialize again (otherwise we can't leave the inquiring state):

AT+RESET
> OK
AT+INIT
> OK
AT+STATE?
> +STATE:INITIALIZED
> OK

Try to pair with the found device:

AT+PAIR=12,34,567890,20
> FAIL

Try with binding before:

AT+BIND=12,34,567890
> OK
AT+PAIR=12,34,567890,20
> FAIL

Linking of course also fails:

AT+LINK=12,34,567890
> FAIL
...

Does someone have some hints for finding the right sequence?

Problems connecting reliablereliably using HC-05 (as bluetooth master)

I currently try to connect an Arduino Micro/Leonardo/32u4 to an ELM327 bluetoothBluetooth dongle using a HC-05-bluetooth-shield Bluetooth shield from iTeadStudio.

The basic AT-command communication works, but I haven't found out yet why AT+PAIR or AT+LINK failare failing and what should be done to avoid this (I've done dozens of Serial Monitor command iterations). Until now I haven't found out a command sequence that reliablereliably connects. What I've tried so far (from different documentation and example codes):

AT
> OK
AT+STATE?
> +STATE+INITIALIZED
> OK
AT+ORGL
> OK
AT+ROLE=1
> OK
AT+ROLE?
> +ROLE:1
> OK
AT+CMODE=0
> OK
AT+BIND=12,34,567890
> OK
AT+INIT
> OK
AT+PAIR=12,34,567890,20
> FAIL
AT+LINK=12,34,567890
> FAIL
AT+INQ
> +INQ:12:34:567890:1F1F,7FFF
> OK
AT+STATE?
> +STATE:INQUIRING
> OK
AT+RESET
> OK
AT+STATE?
> +STATE:INITIALIZED
> OK
...

Does someone hashave some hinthints for finding the right sequence?

Problems connecting reliable using HC-05 (as bluetooth master)

I currently try to connect an Arduino Micro/Leonardo/32u4 to an ELM327 bluetooth dongle using a HC-05-bluetooth-shield from iTeadStudio.

The basic AT-command communication works, but I haven't found out yet why AT+PAIR or AT+LINK fail and what should be done to avoid this (I've done dozens of Serial Monitor command iterations). Until now I haven't found out a command sequence that reliable connects. What I've tried so far (from different documentation and example codes):

AT
> OK
AT+STATE?
> +STATE+INITIALIZED
> OK
AT+ORGL
> OK
AT+ROLE=1
> OK
AT+ROLE?
> +ROLE:1
> OK
AT+CMODE=0
> OK
AT+BIND=12,34,567890
> OK
AT+INIT
> OK
AT+PAIR=12,34,567890,20
> FAIL
AT+LINK=12,34,567890
> FAIL
AT+INQ
> +INQ:12:34:567890:1F1F,7FFF
> OK
AT+STATE?
> +STATE:INQUIRING
> OK
AT+RESET
> OK
AT+STATE?
> +STATE:INITIALIZED
> OK
...

Does someone has some hint for finding the right sequence?

Problems connecting reliably using HC-05 (as bluetooth master)

I currently try to connect an Arduino Micro/Leonardo/32u4 to an ELM327 Bluetooth dongle using a HC-05 Bluetooth shield from iTeadStudio.

The basic AT-command communication works, but I haven't found out yet why AT+PAIR or AT+LINK are failing and what should be done to avoid this (I've done dozens of Serial Monitor command iterations). Until now I haven't found a command sequence that reliably connects. What I've tried so far (from different documentation and example codes):

AT
> OK
AT+STATE?
> +STATE+INITIALIZED
> OK
AT+ORGL
> OK
AT+ROLE=1
> OK
AT+ROLE?
> +ROLE:1
> OK
AT+CMODE=0
> OK
AT+BIND=12,34,567890
> OK
AT+INIT
> OK
AT+PAIR=12,34,567890,20
> FAIL
AT+LINK=12,34,567890
> FAIL
AT+INQ
> +INQ:12:34:567890:1F1F,7FFF
> OK
AT+STATE?
> +STATE:INQUIRING
> OK
AT+RESET
> OK
AT+STATE?
> +STATE:INITIALIZED
> OK
...

Does someone have some hints for finding the right sequence?

edited title
Link
Thomas S.
  • 566
  • 3
  • 8
  • 21
Loading
Notice removed Draw attention by Community Bot
Bounty Ended with no winning answer by Community Bot
Tweeted twitter.com/StackArduino/status/658991467961176064
Notice added Draw attention by Thomas S.
Bounty Started worth 50 reputation by Thomas S.
Source Link
Thomas S.
  • 566
  • 3
  • 8
  • 21
Loading

AltStyle によって変換されたページ (->オリジナル) /