asimlink
Full Member level 1
Hello everyone,
I have a custom designed shield for Arduino Mega 2560 that interfaces with ICOMSAT Sim900 GSM/GPRS module [1]. I am using Arduino GSM/GPRS Shield Library (from BlueVia / Official-Arduino) [2].
The BlueVia Arduino GSM/GPRS Shield library is using SoftwareSerial library for sending commands to Sim900 module. The BlueVia Arduino library has lots of files including GSM3SoftSerial.Cpp and GSM3SoftSerial.h files. These two files gives the user ability to change RX and TX pins.
I want to use default hardware Serial Port pins of Arduino (RXD0 and TXD0), But cant find a way to configure this library to use default hardware serial port instead of using software serial port through GPIO pins.
The reason I want to do this is the pins in my custom hardware available for software serial do not provide interrupt capability needed by the RX pin of Software Serial library.
I understand that the consequences of this decision would be that i wont be able to see debug messages when SIM900 module is using default RX and TX pins.
Another option that i may go for is to use Hardware Serial port 2 (Pins 18 and 19 on Arduino Mega 2560). But since for this i will have to use external wires to connect RXD1 and TXD1 pins of Arduino Mega with IComSat module therefore I will consider this option as last one.
Links:
[1]. http://imall.iteadstudio.com/im120417009.html
[2]. http://github.com/BlueVia/Official-Arduino
Regards
I have a custom designed shield for Arduino Mega 2560 that interfaces with ICOMSAT Sim900 GSM/GPRS module [1]. I am using Arduino GSM/GPRS Shield Library (from BlueVia / Official-Arduino) [2].
The BlueVia Arduino GSM/GPRS Shield library is using SoftwareSerial library for sending commands to Sim900 module. The BlueVia Arduino library has lots of files including GSM3SoftSerial.Cpp and GSM3SoftSerial.h files. These two files gives the user ability to change RX and TX pins.
I want to use default hardware Serial Port pins of Arduino (RXD0 and TXD0), But cant find a way to configure this library to use default hardware serial port instead of using software serial port through GPIO pins.
The reason I want to do this is the pins in my custom hardware available for software serial do not provide interrupt capability needed by the RX pin of Software Serial library.
I understand that the consequences of this decision would be that i wont be able to see debug messages when SIM900 module is using default RX and TX pins.
Another option that i may go for is to use Hardware Serial port 2 (Pins 18 and 19 on Arduino Mega 2560). But since for this i will have to use external wires to connect RXD1 and TXD1 pins of Arduino Mega with IComSat module therefore I will consider this option as last one.
Links:
[1]. http://imall.iteadstudio.com/im120417009.html
[2]. http://github.com/BlueVia/Official-Arduino
Regards