I am trying to use SIM300 GSM Modem with 16f877. When I connect it to PC, it works ONLY when the flow control is set to XON/XOFF in the com port setting. It works well with hyperterminal. When I connect it to uC, it just does not communicate.
On the other hand I have a wavecom Modem, which works with PC when the flow control is set to HARDWARE. When I connect this to uC, it works absolutely fine.
Can anybody guide me on this? In case the code and schematic had problems, the setup would not have worked with the wavecom modem.
do you use the same cable to test wavecom and SIM300 modems. if yes then SIM 300 will not work with wavecom serial cable as the tx and rx are interchanged. so use another cable and swap tx and rx at one end of cable.
do you use the same cable to test wavecom and SIM300 modems. if yes then SIM 300 will not work with wavecom serial cable as the tx and rx are interchanged. so use another cable and swap tx and rx at one end of cable.
you should not change the hyperterminal settings for modems, it should work with hyperterminal with no flow control. check if sim300 works with flow control as none on interchanging the tx and rx pins.
interchanging pins do not help ! my code in picbasic is simple.. this code is working with wavecom.. and sim300 modem is working with PC on XON/XOFF...
wavecom modems are designed to take carriage return and line feed as terminating the character, but SIMCOM modems use \n \r and some modems take ctrl+z and some take only \r. so it depends on the modem which we use. this is documented in the application note of the modem.
In my view in in case of uc ( micro-controller) there are couple of possiblities....check baud rate....assign every thing as char[] s1 ="AT +" commands and then try out...some time ASCII value conversion is required ...check the command senquence on hyper terminal or tera term on PC and uc communication....will help to solve the problem....
wavecom modems are designed to take carriage return and line feed as terminating the character, but SIMCOM modems use \n \r and some modems take ctrl+z and some take only \r. so it depends on the modem which we use. this is documented in the application note of the modem.