Show Posts
Pages: [1]
1  Topics / Home Automation and Networked Objects / Re: Operate from Blackberry/Android/Iphone-Ipad/Nokia/PC/Mac across the Globe W/O PC on: January 13, 2013, 08:59:34 am
hi Capper
  Please help me i am not able to download the attached files of #4 and #34 which is attached by you it says "url not found".
2  Using Arduino / Networking, Protocols, and Devices / Re: problem with serial communication with arduino uno and 3G Shield SIM5216E on: January 08, 2013, 11:42:32 am
Hi all is anybody there who can help me?
3  Using Arduino / Networking, Protocols, and Devices / Re: problem with serial communication with arduino uno and 3G Shield SIM5216E on: January 04, 2013, 12:01:34 am
I am using Serial pins TX - D0 and RX D1 for talking to the shield. This shield is 100% Compatible to arduino and stack-able.  USB port is present directly on the shield, if communicating with the shield USB port to PC then no Problem but if removing from PC and stacking on the arduino then problem starts.
4  Using Arduino / Networking, Protocols, and Devices / problem with serial communication with arduino uno and 3G Shield SIM5216E on: January 03, 2013, 01:19:12 pm
Hi
I have problem with serial communication with arduino uno and 3G Shield SIM5216E ItedStudio. Sketch sends AT command successfully through serial but not able to get reply. Serial monitor just shows  AT+CMGF=1 nothing happens after this. If i am connecting shield directly to PC through USB To Serial COM port its working fine in hyper-terminal. Showing all Reply's and messages. Please help what i am missing? Thanks in advance.
Code:
int led = 13;
int onModulePin = 8;        // the pin to switch on the module (without press on button)

int timesToSend = 1;        // Numbers of SMS to send
int count = 0;

int n_sms,x,sms_start;
char data[256];

void switchModule(){
    digitalWrite(onModulePin,HIGH);
    delay(2000);
    digitalWrite(onModulePin,LOW);
}

void setup(){

    Serial.begin(115200);                // UART baud rate
    delay(2000);
    pinMode(led, OUTPUT);
    pinMode(onModulePin, OUTPUT);
    switchModule();                    // switches the module ON

    for (int i = 0;i < 5;i++){
        delay(5000);
    }

    Serial.println("AT+CMGF=1");         // sets the SMS mode to text
    delay(100);
    x = 0;
    do{
        while(Serial.available()==0);
        data[x]=Serial.read(); 
        x++;       

    }
    while(!((data[x-1] == 'K') && (data[x-2] == 'O')));
}

void loop(){

    while (count < timesToSend){
        delay(1500);

        while(Serial.available()!=0) Serial.read();

        Serial.println("AT+CPMS=\"SM\",\"SM\",\"SM\"");    //selects SIM memory
        Serial.flush();
        for (x=0;x < 255;x++){           
            data[x]='\0';                       
        }
        x=0;
        do{
            while(Serial.available()==0);
            data[x]=Serial.read(); 
            x++;       

        }while(!((data[x-1] == 'K') && (data[x-2] == 'O')));

        x=0;
        do{
            x++;
        }while (data[x] != ' ');

        x++;
        n_sms=0;
        do{
            n_sms*=10;
            n_sms=n_sms + (data[x]-0x30);

            x++;

        }while (data[x] != ',');
       
        Serial.print(" ");
        Serial.print(n_sms,DEC);

// Now it shows the total number of SMS and the last SMS
        Serial.println("  SMS stored in SIM memory. Showing last SMS:");

        Serial.print("AT+CMGR=");    //Reads the last SMS
        Serial.println(n_sms-1,DEC);
        Serial.flush();
        for (x=0;x < 255;x++){           
            data[x]='\0';                       
        }
        x=0;
        do{
            while(Serial.available()==0);
            data[x]=Serial.read(); 
            x++;           
            if((data[x-1] == 0x0D) && (data[x-2] == '"')){
                x=0;
            }
        }
        while(!((data[x-1] == 'K') && (data[x-2] == 'O')));

        data[x-3]='\0';        //finish the string before the OK

        Serial.println(data);    //shows the message

        delay(5000);

        count++;
    }
}
5  Using Arduino / Displays / Re: Problem with LCD and Motor on: October 13, 2012, 01:19:15 pm
You tried a 1n4004 diode yet?
Thanks liudr for your reply, Today i tried to buy 1n4004 diode but all verdors are saying that the replacement/upgrade is 1n4007 and 1n4004 is outdated and not avalable. Do you have any other solution for this problme? Thanks in advance.
6  Using Arduino / Displays / Re: Problem with LCD and Motor on: October 12, 2012, 01:06:25 pm
I am also having similar issue. My LCD connected to the UNO displays strange characters after turning on/off the 5V relay for a 10-15 times. The relay controls a 220v AC solenoid and another relay controls a Contactor (220V AC). Both relay has diode contected (IN4007).
I tryed putting cap 100uF around display but LCD still displays strange characters.
Does anyone have any suggestion for me. Thanks
Pages: [1]