I have a Simcom Sim300s
when i connect it using a serial cable to my pc i can call send messages etc.
but if i connect it to my arduino it won't do anything
I tried every library i could find but without result.
i want to use one of the four serial ports. but it won't work
i connected the 2 ports of the serial connector to pin 18 and 19 and connected the gnd's together.
for the connection with my pc and hyperterminal i also used only 3 wires so that should be correct.
so please tell me what do i do wrong do i connect the pins incorrect or am i using the wrong code.
Part of the problem is that the SIM300S IC uses 2.85V IO lines and your Mega uses 5V IO lines. You're sending 5 volt signals to a device that can't handle anything over 3.23 volts (VDD_EXT + 0.3 ) so you should start by either dropping the Mega Tx line over a resistor divider to the correct range and hope the 2.85 V signal is read by the Mega or use some kind of logic level converter to convert both Rx and Tx to the correct levels. If you use a level converter you can use the VDD_EXT pin on the SIM300S as your low side IO supply.
Also you don't need to use the "\r" after each command, just use Serial.println with the AT command and it will work fine.