Arduino plus bluetooth module (the bc147 one)

Everytime I call "AT" command on it, serial doesn't return any response. Supposedly it should return "OK". Pinouts are connected properly, please help if something is wrong with this code.

#include <SoftwareSerial.h>

SoftwareSerial modem(0,1); // 0 is the RX pin, 1 is the TX pin

void setup()
{
   modem.begin(9600);
   Serial.begin(38400);

   modem.write("AT");

   while(millis() < 30000) // wait for a reply for up to 30 seconds
   {
      while(modem.available() > 0)
      {
         char aChar = modem.read();
         Serial.print(aChar);
      }
   }
}

void loop() // run over and over
{
  if (modem.available())
    Serial.print(modem.read());
  if (Serial.available())
    modem.print(Serial.read());
}

Please help, I'm having trouble just communicating arduino and the bluetooth module :frowning:

You seem to be trying to use SoftwareSerial on the Hardware Serial pins. That won't work.

You also seem to expect us to google "the bc147 one" to find what hardware you are dealing with. That doesn't work, either.