So i have a arduino uno, and i tried to connect it to a gsm module, and turn an led on/off using sms sent from my phone. I connected the tx and rx pin of module to digital pin 9 and 10 of arduino, and then created a SoftwareSerial object and passed 9, 10 to it's constructor so i could send and receive data using gsm.read() and gsm.println() (gsm being the object of SoftwareSerial)
I wrote all the code and it worked fine when i powered the arduino using my laptop's usb, and the led turned on and off when i sent messages.
However when i disconnected the usb and connected an external power supply to the arduino, it stopped working. The lights on the arduino also lit, but the led no longer changed state. I powered it using a 9 volt wall adapter and plugged it into the cylindrical power socket on the uno
I don't get what you mean, the code works fine with the laptop, i use no communication with the laptop, i only communicate with the gsm module, so it should work, i mean there should be no difference, right?