Arduino BT to another BT device automatic pairing

I have Arduino BT and I wish to connect this to another BT device which has "0000" passkey but no input method to enter this.

I wish to write a code for my Arduino BT which connects automatically to other Bluetooth device and receives the data on SPP.

I have read many articles but still not clear how to do this.

I have a humble request if you can send me help for this, may be a short code example. I have no idea in which mode I need to set my Arduino BT, Command or host mdde?

Second thing is I wish to do following

After switching on Arduino BT and remote BT device following thing should happen

  1. Arduino will search the defined BT address
  2. Makes authenticated connection having "0000" passkey
  3. Starts receiving data from other BT device.

I need urgent help.

Please guide me.

Thanks and best regards

Hi,

I'm trying to do a very similar system, and this information would be very useful to me too.

Just in case: I'm trying to make one arduino read an input signal then send some response signals to the other arduino, witch would respond through an output to another device. This, without using any computers or cell phones.

Thanks for any help and sorry for my bad english.